DescriptionMove m_overridesItemAfter member from LiveNodeListBase to HTMLCollection
Move m_overridesItemAfter member from LiveNodeListBase to HTMLCollection as
LiveNodeList never override itemAfter() and this is only useful for
HTMLCollection subclasses.
Also introduce a new canTraverseBackward() method to HTMLCollection and
LiveNodeList() that is used by CollectionIndexCache. This method is inlined
and returns true unconditionally for LiveNodeList which lets the compiler
simplify the branching for the LiveNodeList specialization of
CollectionIndexCache. This results in a 2-3% improvement on the following
performance test:
PerformanceTests/Bindings/node-list-access.html
This patch is based the following WebKit revision by <antti@apple.com>:
http://trac.webkit.org/changeset/158774
R=esprehn, adamk
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166351
Patch Set 1 #Patch Set 2 : No change #
Messages
Total messages: 5 (0 generated)
|