Closed
Bug 795468
Opened 12 years ago
Closed 12 years ago
minor optimizations to accessible creation
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: tbsaunde, Assigned: tbsaunde)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
There's no reason to check the object we just recreated isn't null, new
is infalable.
- use AsContent() instead of QueryInterface
- don't use a weakFrame since the world will end if we modify the dom or
layout while creating an accessible anyway.
Attachment #666053 -
Flags: review?(surkov.alexander)
Comment 2•12 years ago
|
||
Comment on attachment 666053 [details] [diff] [review]
patch
Review of attachment 666053 [details] [diff] [review]:
-----------------------------------------------------------------
nice, thank you
::: accessible/src/base/nsAccessibilityService.cpp
@@ +997,5 @@
>
> roleMapEntry = nullptr;
> }
>
> + if ( !newAcc && isHTML) { // HTML accessibles
nit: excess space after (
@@ +998,5 @@
> roleMapEntry = nullptr;
> }
>
> + if ( !newAcc && isHTML) { // HTML accessibles
> + nsIAtom *frameType = frame->GetType();
nit: type* name
@@ +1098,5 @@
> // the table caption would still be created. By setting
> // *aIsSubtreeHidden = true we ensure that no descendant accessibles
> // are created.
> + if (frame->GetType() == nsGkAtoms::tableCaptionFrame &&
> + frame->GetRect().IsEmpty()) {
nit: wrong indent of second line
Attachment #666053 -
Flags: review?(surkov.alexander) → review+
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•