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

Unified Diff: Source/core/dom/shadow/ComposedTreeTraversal.h

Issue 1030153002: Add ComposedTreeTraversal::lastWithin/lastWithinOrSelf (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2015-03-26T12:55 hayato's review: Add assertPostcondition, use traverseLastChild Created 5 years, 9 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
« no previous file with comments | « no previous file | Source/core/dom/shadow/ComposedTreeTraversal.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/ComposedTreeTraversal.h
diff --git a/Source/core/dom/shadow/ComposedTreeTraversal.h b/Source/core/dom/shadow/ComposedTreeTraversal.h
index 9b24415fbfb47d224b2aded7bf28bfa0059daf1e..d7dc8502da14095c405c2889dfd954a8c15966db 100644
--- a/Source/core/dom/shadow/ComposedTreeTraversal.h
+++ b/Source/core/dom/shadow/ComposedTreeTraversal.h
@@ -95,6 +95,9 @@ public:
// composed tree.
static unsigned countChildren(const Node&);
+ static Node* lastWithin(const Node&);
+ static Node& lastWithinOrSelf(const Node&);
+
private:
enum TraversalDirection {
TraversalDirectionForward,
« no previous file with comments | « no previous file | Source/core/dom/shadow/ComposedTreeTraversal.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698