[Webkit-unassigned] [Bug 18930] mouseenter and mouseleave events not supported

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 27 08:18:24 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=18930





--- Comment #28 from Erik Arvidsson <arv at chromium.org>  2012-09-27 08:18:49 PST ---
(In reply to comment #22)
> ...will not always working as might be expected for capture phase event listeners installed on ancestor elements (They will just have to rely on mouseover and mouseout instead).

That seems unacceptable to me.

(In reply to comment #24)
> Not when the event doesn't bubble, of course if we want capture to work, then we would need to check all the ancestor.

We do want capture to work. We need to potentially dispatch an event on every ancestor.

I think the cleanest thing to do here is to define a custom dispatch. This way we can gather the ancestors once instead of once per ancestor. This custom dispatch can check if there is a listener too. In the case where there are no listeners we walk the ancestors once. In the case where there are listeners the dispatch will still be O(n^2) where n is the depth of the tree.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list