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

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

Issue 141683004: Use more const references in HTMLCollection / LiveNodeList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
Index: Source/core/dom/ChildNodeList.cpp
diff --git a/Source/core/dom/ChildNodeList.cpp b/Source/core/dom/ChildNodeList.cpp
index 4144c04cbe57fb38c5504c498ba9b4d4830a0515..685fb915b34691358ae32634e23610c62a03375a 100644
--- a/Source/core/dom/ChildNodeList.cpp
+++ b/Source/core/dom/ChildNodeList.cpp
@@ -38,11 +38,11 @@ ChildNodeList::~ChildNodeList()
ownerNode()->nodeLists()->removeChildNodeList(this);
}
-bool ChildNodeList::nodeMatches(Element* testNode) const
+bool ChildNodeList::nodeMatches(const Element& testNode) const
{
// This function will be called only by LiveNodeList::namedItem,
// for an element that was located with getElementById.
- return testNode->parentNode() == rootNode();
+ return testNode.parentNode() == rootNode();
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698