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

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

Issue 420603012: Remove ContainerNode overload for NodeTraversal::nextSkippingChildren() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove the one from ElementTraversal as well Created 6 years, 5 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/NodeTraversal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementTraversal.h
diff --git a/Source/core/dom/ElementTraversal.h b/Source/core/dom/ElementTraversal.h
index e0165aec982dea919c66ad86739af7b5791100ef..80a574e3808fb1290e85cfd86d511250170b5a91 100644
--- a/Source/core/dom/ElementTraversal.h
+++ b/Source/core/dom/ElementTraversal.h
@@ -65,10 +65,8 @@ public:
static ElementType* previous(const Node& current, const Node* stayWithin) { return previousTemplate(current, stayWithin); }
// Like next, but skips children.
- static ElementType* nextSkippingChildren(const ContainerNode& current) { return nextSkippingChildrenTemplate(current); }
- static ElementType* nextSkippingChildren(const Node& current) { return nextSkippingChildrenTemplate(current); }
- static ElementType* nextSkippingChildren(const ContainerNode& current, const Node* stayWithin) { return nextSkippingChildrenTemplate(current, stayWithin); }
- static ElementType* nextSkippingChildren(const Node& current, const Node* stayWithin) { return nextSkippingChildrenTemplate(current, stayWithin); }
+ static ElementType* nextSkippingChildren(const Node&);
+ static ElementType* nextSkippingChildren(const Node&, const Node* stayWithin);
// Pre-order traversal including the pseudo-elements.
static ElementType* previousIncludingPseudo(const Node&, const Node* stayWithin = 0);
@@ -101,10 +99,6 @@ private:
static ElementType* previousTemplate(NodeType&);
template <class NodeType>
static ElementType* previousTemplate(NodeType&, const Node* stayWithin);
- template <class NodeType>
- static ElementType* nextSkippingChildrenTemplate(NodeType&);
- template <class NodeType>
- static ElementType* nextSkippingChildrenTemplate(NodeType&, const Node* stayWithin);
};
typedef Traversal<Element> ElementTraversal;
@@ -267,8 +261,7 @@ inline ElementType* Traversal<ElementType>::previousTemplate(NodeType& current,
}
template <class ElementType>
-template <class NodeType>
-inline ElementType* Traversal<ElementType>::nextSkippingChildrenTemplate(NodeType& current)
+inline ElementType* Traversal<ElementType>::nextSkippingChildren(const Node& current)
{
Node* node = NodeTraversal::nextSkippingChildren(current);
while (node && !isElementOfType<const ElementType>(*node))
@@ -277,8 +270,7 @@ inline ElementType* Traversal<ElementType>::nextSkippingChildrenTemplate(NodeTyp
}
template <class ElementType>
-template <class NodeType>
-inline ElementType* Traversal<ElementType>::nextSkippingChildrenTemplate(NodeType& current, const Node* stayWithin)
+inline ElementType* Traversal<ElementType>::nextSkippingChildren(const Node& current, const Node* stayWithin)
{
Node* node = NodeTraversal::nextSkippingChildren(current, stayWithin);
while (node && !isElementOfType<const ElementType>(*node))
« no previous file with comments | « no previous file | Source/core/dom/NodeTraversal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698