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

Unified Diff: Source/core/html/HTMLCollection.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 | « Source/core/html/CollectionIndexCache.h ('k') | Source/core/html/HTMLCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLCollection.h
diff --git a/Source/core/html/HTMLCollection.h b/Source/core/html/HTMLCollection.h
index 86f7dd1ac272ae9b828d4a6e45438443d249d5ed..0b1601da4db92e05041f1c58827c0c1201decc90 100644
--- a/Source/core/html/HTMLCollection.h
+++ b/Source/core/html/HTMLCollection.h
@@ -59,8 +59,8 @@ public:
// CollectionIndexCache API.
bool canTraverseBackward() const { return !overridesItemAfter(); }
Element* itemBefore(const Element* previousItem) const;
- Element* traverseToFirstElement(const ContainerNode& root) const;
- Element* traverseForwardToOffset(unsigned offset, Element& currentElement, unsigned& currentOffset, const ContainerNode& root) const;
+ Element* traverseToFirstElement() const;
+ Element* traverseForwardToOffset(unsigned offset, Element& currentElement, unsigned& currentOffset) const;
protected:
HTMLCollection(ContainerNode& base, CollectionType, ItemAfterOverrideType);
@@ -108,7 +108,7 @@ protected:
}
private:
- Element* traverseNextElement(Element& previous, const ContainerNode& root) const;
+ Element* traverseNextElement(Element& previous) const;
void invalidateIdNameCacheMaps(Document* oldDocument = 0) const
{
« no previous file with comments | « Source/core/html/CollectionIndexCache.h ('k') | Source/core/html/HTMLCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698