DescriptionHave ChildNodeList subclass NodeList instead of LiveNodeList
Have ChildNodeList subclass NodeList instead of LiveNodeList. ChildNodeList
behaves differently than other LiveNodeLists and causes a lot of special
handling / branching in LiveNodeList and LiveNodeListBase.
LiveNodeList can also now deal solely with Elements instead of generic Nodes as
ChildNodeList was the only subclass not dealing with Elements.
Therefore, handling ChildNodeList separately makes the code a lot cleaner and
is also good for performance. I see a 3-4% improvement on the following
performance test: Bindings/node-list-access.html.
This patch is inspired from the following WebKit patch by <antti@apple.com>:
http://trac.webkit.org/changeset/158536
R=esprehn, adamk
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166565
Patch Set 1 #Patch Set 2 : Update copyright #
Total comments: 3
Messages
Total messages: 10 (0 generated)
|