Closed
Bug 514595
Opened 16 years ago
Closed 16 years ago
it's not necessary to keep two events type for show and two ones for hide
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: surkov, Assigned: surkov)
References
(Blocks 2 open bugs)
Details
(Keywords: access)
Attachments
(1 file, 2 obsolete files)
85.14 KB,
patch
|
davidb
:
review+
ginnchen+exoracle
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
1. It's not correct, JS ATs don't need to know if this event is from DOM and this is from layout. They need to know accessible was shown or hidden.
2. It looks like we don't need two events internally, because all related logic can be hidden inside of accessible event.
3. Provide new constants for layout/dom modules to leave them unchanged.
It's not just clean up bug, this bug will make coalescence of events coming from DOM and layout.
Assignee | ||
Comment 1•16 years ago
|
||
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #398650 -
Flags: superreview?(roc)
Attachment #398650 -
Flags: review?(marco.zehe)
Attachment #398650 -
Flags: review?(ginn.chen)
Attachment #398650 -
Flags: review?(bolterbugz)
Assignee | ||
Comment 2•16 years ago
|
||
fixed linux bustage
Attachment #398650 -
Attachment is obsolete: true
Attachment #398670 -
Flags: superreview?(roc)
Attachment #398670 -
Flags: review?(marco.zehe)
Attachment #398670 -
Flags: review?(ginn.chen)
Attachment #398670 -
Flags: review?(bolterbugz)
Attachment #398650 -
Flags: superreview?(roc)
Attachment #398650 -
Flags: review?(marco.zehe)
Attachment #398650 -
Flags: review?(ginn.chen)
Attachment #398650 -
Flags: review?(bolterbugz)
Comment 3•16 years ago
|
||
Comment on attachment 398670 [details] [diff] [review]
patch2
>+ // Because of async layout changes we handle remove child node change
>+ // before than hide parent node change even we hide parent before we
>+ // remove a child. Therefore mark this as todo until we have more smart
>+ // events coalescence.
The way I see it, all the kTodo usages point to something that was "true" even before this, so I don't see any difference to what we had before. Is this change really necessary?
Assignee | ||
Comment 4•16 years ago
|
||
(In reply to comment #3)
> The way I see it, all the kTodo usages point to something that was "true" even
> before this, so I don't see any difference to what we had before. Is this
> change really necessary?
You're right. But the difference is code readability. When I see two boolean one after other then I always think which of them this one is. Also it would be easy to find what we need to do by simple search.
Comment 5•16 years ago
|
||
Comment on attachment 398670 [details] [diff] [review]
patch2
r=me for the test part, thanks for the explanation!
Attachment #398670 -
Flags: review?(marco.zehe) → review+
void
nsDocAccessible::ContentRemoved(nsIDocument *aDocument, nsIContent* aContainer,
nsIContent* aChild, PRInt32 aIndexInContainer)
{
// Invalidate the subtree of the removed element.
// InvalidateCacheSubtree(aChild, nsIAccessibleEvent::EVENT_DOM_DESTROY);
Please also update the comments.
Assignee | ||
Comment 7•16 years ago
|
||
Ginn's comment is addressed
Attachment #398670 -
Attachment is obsolete: true
Attachment #399049 -
Flags: superreview?(roc)
Attachment #399049 -
Flags: review?(ginn.chen)
Attachment #399049 -
Flags: review?(bolterbugz)
Attachment #398670 -
Flags: superreview?(roc)
Attachment #398670 -
Flags: review?(ginn.chen)
Attachment #398670 -
Flags: review?(bolterbugz)
Comment on attachment 399049 [details] [diff] [review]
patch3
+ PRBool mIsAsync;
PRPackedBool
+ PRBool isAsynch = nsAccEvent::IsAsyncEvent(accessibleEvent);
+ if (domNode == gLastFocusedNode && isAsynch &&
isAsync
Attachment #399049 -
Flags: superreview?(roc) → superreview+
![]() |
||
Updated•16 years ago
|
Attachment #399049 -
Flags: review?(bolterbugz) → review+
![]() |
||
Comment 9•16 years ago
|
||
Comment on attachment 399049 [details] [diff] [review]
patch3
OK thanks, I can see how this will help coalescence, r=me. We should rename our event constants in events.js etc. (here or a follow up).
Assignee | ||
Comment 10•16 years ago
|
||
(In reply to comment #9)
> (From update of attachment 399049 [details] [diff] [review])
> OK thanks, I can see how this will help coalescence, r=me. We should rename our
> event constants in events.js etc. (here or a follow up).
Did I miss something in this patch? At least I renamed them in events.js (mochitests are passed).
![]() |
||
Comment 11•16 years ago
|
||
(In reply to comment #9)
> (From update of attachment 399049 [details] [diff] [review])
> OK thanks, I can see how this will help coalescence, r=me. We should rename our
> event constants in events.js etc. (here or a follow up).
Ah ok - my bad. Thanks.
Attachment #399049 -
Flags: review?(ginn.chen) → review+
Assignee | ||
Comment 12•16 years ago
|
||
landed on 1.9.3 with addressed Robert's comment - http://hg.mozilla.org/mozilla-central/rev/90cef4e7d833
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•