Bug 10264 - need ancestorChainHasListenerOfType(type) to avoid malloc during event dispatch
Summary: need ancestorChainHasListenerOfType(type) to avoid malloc during event dispatch
Status: RESOLVED DUPLICATE of bug 16447
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P4 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-05 01:17 PDT by Eric Seidel (no email)
Modified: 2008-04-28 09:28 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2006-08-05 01:17:50 PDT
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.
Comment 1 Eric Seidel (no email) 2008-04-28 09:28:43 PDT

*** This bug has been marked as a duplicate of 16447 ***