Closed
Bug 575595
Opened 14 years ago
Closed 14 years ago
add GetRowAndColumnIndicesAt to make IAccessibleTable::get_rowColumnExtentsAtIndex faster
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: surkov, Assigned: surkov)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file)
(deleted),
patch
|
davidb
:
review+
MarcoZ
:
review+
|
Details | Diff | Splinter Review |
It should allow make the table test (bug 570995) faster in two times because of reduction of nsOuterTableFrame::GetRowAndColumnByIndex() calls number which is bottle neck now.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #454852 -
Flags: review?(marco.zehe)
Attachment #454852 -
Flags: review?(bolterbugz)
Assignee | ||
Comment 2•14 years ago
|
||
Comment 3•14 years ago
|
||
Comment on attachment 454852 [details] [diff] [review]
patch
r=me for the tests and the functionality. This improves perf of the table mutation test from the 35400/35350 MS of try-server build of bug 575576 to 24409/24386 MS with this try-server build. Additionally, initial loading time of the page with NVDA is vastly improved.
Attachment #454852 -
Flags: review?(marco.zehe) → review+
Comment 4•14 years ago
|
||
Comment on attachment 454852 [details] [diff] [review]
patch
r=me! Only nits:
>+++ b/accessible/src/msaa/CAccessibleTable.cpp
I'm not sure the cosmetic changes are worth the loss in history/annotation -- but I'll leave it up to you to keep them or not.
>+nsXULTreeGridAccessible::GetRowAndColumnIndicesAt(PRInt32 aCellIndex,
>+ PRInt32* aRowIndex,
>+ PRInt32* aColumnIndex)
>+{
>+ NS_ENSURE_ARG_POINTER(aRowIndex);
>+ *aRowIndex = -1;
>+ NS_ENSURE_ARG_POINTER(aColumnIndex);
>+ *aColumnIndex = -1;
Nit: this is fine or you might prefer:
NS_ENSURE_ARG_POINTER(aRowIndex);
NS_ENSURE_ARG_POINTER(aColumnIndex);
*aRowIndex = *aColumnIndex = -1;
>+ ok(false, id + ": can't get row and column indexes for cell index " + idx + "," + e);
Nit: "indices"
Attachment #454852 -
Flags: review?(bolterbugz) → review+
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #4)
> (From update of attachment 454852 [details] [diff] [review])
> r=me! Only nits:
>
> >+++ b/accessible/src/msaa/CAccessibleTable.cpp
>
> I'm not sure the cosmetic changes are worth the loss in history/annotation --
> but I'll leave it up to you to keep them or not.
That's always a choice: nicer code vs cleaner history. I don't have an answer. Here I would prefer to keep.
> NS_ENSURE_ARG_POINTER(aRowIndex);
> NS_ENSURE_ARG_POINTER(aColumnIndex);
> *aRowIndex = *aColumnIndex = -1;
this shorter and nicer but not correct though nobody cares in the end I guess.
Assignee | ||
Comment 6•14 years ago
|
||
landed on 2.0 (1.9.3) - http://hg.mozilla.org/mozilla-central/rev/5425902639a5
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•