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

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

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 | « no previous file | Source/core/dom/ChildNodeList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ChildNodeList.h
diff --git a/Source/core/dom/ChildNodeList.h b/Source/core/dom/ChildNodeList.h
index c91a04354003b674386b9777669f070b09303a18..517935893900396714ca3b5ad80badd518a49999 100644
--- a/Source/core/dom/ChildNodeList.h
+++ b/Source/core/dom/ChildNodeList.h
@@ -52,8 +52,8 @@ public:
ContainerNode& rootNode() const { return ownerNode(); }
bool canTraverseBackward() const { return true; }
Node* itemBefore(const Node* previousItem) const;
- Node* traverseToFirstElement(const ContainerNode& root) const { return root.firstChild(); }
- Node* traverseForwardToOffset(unsigned offset, Node& currentNode, unsigned& currentOffset, const ContainerNode& root) const;
+ Node* traverseToFirstElement() const { return rootNode().firstChild(); }
+ Node* traverseForwardToOffset(unsigned offset, Node& currentNode, unsigned& currentOffset) const;
private:
explicit ChildNodeList(ContainerNode& rootNode);
« no previous file with comments | « no previous file | Source/core/dom/ChildNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698