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

Unified Diff: Source/core/dom/LiveNodeList.cpp

Issue 224303004: Stop passing the root node to node lists traversal functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/core/dom/LiveNodeList.h ('k') | Source/core/dom/LiveNodeListBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/LiveNodeList.cpp
diff --git a/Source/core/dom/LiveNodeList.cpp b/Source/core/dom/LiveNodeList.cpp
index d079fb081b64be3d4f61e30b50a1bf29adbaa212..25ea0915f19e03593d60fc9f9ea81c494e77d90d 100644
--- a/Source/core/dom/LiveNodeList.cpp
+++ b/Source/core/dom/LiveNodeList.cpp
@@ -45,14 +45,14 @@ Element* LiveNodeList::itemBefore(const Element* previous) const
return LiveNodeListBase::itemBefore(*this, previous);
}
-Element* LiveNodeList::traverseToFirstElement(const ContainerNode& root) const
+Element* LiveNodeList::traverseToFirstElement() const
{
- return firstMatchingElement(*this, root);
+ return firstMatchingElement(*this);
}
-Element* LiveNodeList::traverseForwardToOffset(unsigned offset, Element& currentNode, unsigned& currentOffset, const ContainerNode& root) const
+Element* LiveNodeList::traverseForwardToOffset(unsigned offset, Element& currentNode, unsigned& currentOffset) const
{
- return traverseMatchingElementsForwardToOffset(*this, offset, currentNode, currentOffset, root);
+ return traverseMatchingElementsForwardToOffset(*this, offset, currentNode, currentOffset);
}
} // namespace WebCore
« no previous file with comments | « Source/core/dom/LiveNodeList.h ('k') | Source/core/dom/LiveNodeListBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698