Closed
Bug 756973
Opened 13 years ago
Closed 13 years ago
make RootAccessible::NativeState faster
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: surkov, Assigned: surkov)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file)
(deleted),
patch
|
tbsaunde
:
review+
enndeakin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #625571 -
Flags: review?(trev.saunders)
Assignee | ||
Updated•13 years ago
|
Attachment #625571 -
Flags: review?(enndeakin)
Comment 1•13 years ago
|
||
Comment on attachment 625571 [details] [diff] [review]
patch
>+ PRUint64 state = nsDocAccessibleWrap::NativeState();
>+ if (state & states::DEFUNCT)
>+ return state;
what's it for?
Attachment #625571 -
Flags: review?(trev.saunders) → review+
Assignee | ||
Comment 2•13 years ago
|
||
(In reply to Trevor Saunders (:tbsaunde) from comment #1)
> Comment on attachment 625571 [details] [diff] [review]
> patch
>
> >+ PRUint64 state = nsDocAccessibleWrap::NativeState();
> >+ if (state & states::DEFUNCT)
> >+ return state;
>
> what's it for?
basically to not have a check for mDocument, in general I think we are allowed to not spend a time for states computation if accessible is defunct.
Comment 3•13 years ago
|
||
(In reply to alexander :surkov from comment #2)
> (In reply to Trevor Saunders (:tbsaunde) from comment #1)
> > Comment on attachment 625571 [details] [diff] [review]
> > patch
> >
> > >+ PRUint64 state = nsDocAccessibleWrap::NativeState();
> > >+ if (state & states::DEFUNCT)
> > >+ return state;
> >
> > what's it for?
>
> basically to not have a check for mDocument, in general I think we are
> allowed to not spend a time for states computation if accessible is defunct.
yeah, was just wondering why it was possible we were dealing with a defunct accessible since I forgot about the atk crash.
Comment 4•13 years ago
|
||
(In reply to Trevor Saunders (:tbsaunde) from comment #3)
> (In reply to alexander :surkov from comment #2)
> > (In reply to Trevor Saunders (:tbsaunde) from comment #1)
> > > Comment on attachment 625571 [details] [diff] [review]
> > > patch
> > >
> > > >+ PRUint64 state = nsDocAccessibleWrap::NativeState();
> > > >+ if (state & states::DEFUNCT)
> > > >+ return state;
> > >
> > > what's it for?
> >
> > basically to not have a check for mDocument, in general I think we are
> > allowed to not spend a time for states computation if accessible is defunct.
>
> yeah, was just wondering why it was possible we were dealing with a defunct
> accessible since I forgot about the atk crash.
It might be cleaner to only return states::DEFUNCT here.
Comment 5•13 years ago
|
||
Which probably happens nearly all the time?
Comment 6•13 years ago
|
||
(In reply to David Bolter [:davidb] from comment #5)
> Which probably happens nearly all the time?
what? being called on a defunct accessible? hopefully not
Comment 7•13 years ago
|
||
(In reply to alexander :surkov from comment #2)
> (In reply to Trevor Saunders (:tbsaunde) from comment #1)
> > Comment on attachment 625571 [details] [diff] [review]
> > patch
> >
> > >+ PRUint64 state = nsDocAccessibleWrap::NativeState();
> > >+ if (state & states::DEFUNCT)
> > >+ return state;
> >
> > what's it for?
>
> basically to not have a check for mDocument, in general I think we are
> allowed to not spend a time for states computation if accessible is defunct.
actually, I'm not sure how it works either, since we only set the DEFUNCT state in nsAccessible::NativeState()
Comment 8•13 years ago
|
||
(In reply to Trevor Saunders (:tbsaunde) from comment #6)
> (In reply to David Bolter [:davidb] from comment #5)
> > Which probably happens nearly all the time?
>
> what? being called on a defunct accessible?
No. I'm wondering how often is returning "state" equivalent to returning states::DEFUNCT (how often are other bits flipped).
Updated•13 years ago
|
Attachment #625571 -
Flags: review?(enndeakin) → review+
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → surkov.alexander
Assignee | ||
Comment 9•13 years ago
|
||
Target Milestone: --- → mozilla15
Comment 10•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•