Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Unified Diff: Source/core/dom/NodeTraversal.h

Issue 229213002: Make HTMLCollection / NodeList backward traversal consistent with forward one (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/NodeTraversal.h
diff --git a/Source/core/dom/NodeTraversal.h b/Source/core/dom/NodeTraversal.h
index 41017f887ad5b02764072acd2cd4edd1cc479102..e216fa56a2f3114f836311335c6cfe83ea3e5efd 100644
--- a/Source/core/dom/NodeTraversal.h
+++ b/Source/core/dom/NodeTraversal.h
@@ -48,6 +48,7 @@ public:
static Node* nextSkippingChildren(const ContainerNode& current, const Node* stayWithin) { return traverseNextSkippingChildrenTemplate(current, stayWithin); }
// Does a reverse pre-order traversal to find the node that comes before the current one in document order
+ static Node* lastWithin(const ContainerNode&);
static Node* previous(const Node&, const Node* stayWithin = 0);
// Like previous, but skips children and starts with the next sibling.

Powered by Google App Engine
This is Rietveld 408576698