DescriptionUse ContainerNode type instead of Node for LiveNodeListBase's rootNode
Use ContainerNode type instead of Node for LiveNodeListBase's rootNode.
LiveNodeListBase::rootNode() returns a ContainerNode but this was sometimes
assigned to a Node was we would loose the type information.
This is particularly useful because some methods are faster on ContainerNode
than Node, e.g. lastNode(). This CL updates both lastNode() and
lastDescendant() methods in HTMLCollection.cpp, both of which can now call
ContainerNode::lastNode() instead of the slower Node::lastNode().
R=esprehn, adamk
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166512
Patch Set 1 #
Messages
Total messages: 14 (0 generated)
|