DescriptionMove matching Element traversal functions from LiveNodeListBase to ElementTraversal
Move matching Element traversal functions from LiveNodeListBase to
ElementTraversal and generalized them a bit so that they can be reused in the
rest of the code base.
LiveNodeListBase exists so that code can be shared between LiveNodeList and
HTMLCollection. However, the ElementTraversal class is a better place to share
DOM Tree traversal utility functions. It is quite common in the code base that
we want to traverse Elements that match a specific rule so this will reduce
code duplication once the rest of the code is ported to these new
ElementTraversal functions.
R=adamk@chromium.org, esprehn@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180227
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 2
Patch Set 3 : Make Element argument const #Patch Set 4 : Clean up #
Total comments: 4
Patch Set 5 : Use anonymous namespace #
Messages
Total messages: 8 (0 generated)
|