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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: surkov)

References

(Blocks 2 open bugs)

Details

(Keywords: access)

Attachments

(1 file, 2 obsolete files)

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.
Attached patch patch (obsolete) — Splinter Review
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)
Attached patch patch2 (obsolete) — Splinter Review
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 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?
(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 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.
Attached patch patch3Splinter Review
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+
Attachment #399049 - Flags: review?(bolterbugz) → review+
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).
(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).
(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+
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.

Attachment

General

Created:
Updated:
Size: