Bug 10264
Summary: | need ancestorChainHasListenerOfType(type) to avoid malloc during event dispatch | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | ||
Priority: | P4 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Eric Seidel (no email)
need ancestorChainHasListenerOfType(type) to avoid malloc during event dispatch
Certain events could benifit from a function to check if any ancestor has a listener of a specific type.
Such events include:
SVGLoad
mouseMoved
and DOM Mutation events
This would allow us to trade a treewalk for a malloc. The treewalk is likely to be less expensive.
This would also require us to re-work how event listeners are stored. Using a HashMap<AtomicString, Vector<EventListenter> > would be required instead, to allow O(1) lookup of events based on type.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
*** This bug has been marked as a duplicate of 16447 ***