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

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

Issue 413133008: Remove Traversal<Element> specializations for lastWithin() / previous() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 | no next file » | 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 197364715aea40a48629b23762cbdc08a94213e7..2b9ba96a500bb40996b657d935788569fee9e1c2 100644
--- a/Source/core/dom/ElementTraversal.h
+++ b/Source/core/dom/ElementTraversal.h
@@ -113,16 +113,6 @@ inline Element* Traversal<Element>::firstWithinTemplate(NodeType& current)
template <>
template <class NodeType>
-inline Element* Traversal<Element>::lastWithinTemplate(NodeType& current)
-{
- Node* node = NodeTraversal::lastWithin(current);
- while (node && !node->isElementNode())
- node = NodeTraversal::previous(*node, &current);
- return toElement(node);
-}
-
-template <>
-template <class NodeType>
inline Element* Traversal<Element>::nextTemplate(NodeType& current)
{
Node* node = NodeTraversal::next(current);
@@ -141,26 +131,6 @@ inline Element* Traversal<Element>::nextTemplate(NodeType& current, const Node*
return toElement(node);
}
-template <>
-template <class NodeType>
-inline Element* Traversal<Element>::previousTemplate(NodeType& current)
-{
- Node* node = NodeTraversal::previous(current);
- while (node && !node->isElementNode())
- node = NodeTraversal::previous(*node);
- return toElement(node);
-}
-
-template <>
-template <class NodeType>
-inline Element* Traversal<Element>::previousTemplate(NodeType& current, const Node* stayWithin)
-{
- Node* node = NodeTraversal::previous(current, stayWithin);
- while (node && !node->isElementNode())
- node = NodeTraversal::previous(*node, stayWithin);
- return toElement(node);
-}
-
// Generic versions.
template <class ElementType>
template <class NodeType>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698