DescriptionUse NodeTraversal instead of ElementTraversal in VisitedLinkState
Use NodeTraversal instead of ElementTraversal in VisitedLinkState to avoid
redundant Node::isElementNode() checks. Since isLink() is defined on Node, and
not on Element, we can simply iterate through all Nodes and then calls isLink()
on them (instead of isElementNode() && toElement(node).isLink()).
R=esprehn@chromium.org, adamk@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180677
Patch Set 1 #
Total comments: 3
Messages
Total messages: 8 (0 generated)
|