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

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: 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
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..32abde58a665a11617813fd6110a360b8ea06b08 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(Node&);
hayato 2015/03/26 03:28:27 Input |Node&| can't be |const Node&|? I guess our
hajimehoshi 2015/03/26 03:37:18 As you mentioned, I was worried the case when this
hajimehoshi 2015/03/26 03:43:26 Done.
+
private:
enum TraversalDirection {
TraversalDirectionForward,
« no previous file with comments | « no previous file | Source/core/dom/shadow/ComposedTreeTraversal.cpp » ('j') | Source/core/dom/shadow/ComposedTreeTraversal.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698