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

Unified Diff: Source/core/html/LabelsNodeList.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/html/LabelsNodeList.cpp
diff --git a/Source/core/html/LabelsNodeList.cpp b/Source/core/html/LabelsNodeList.cpp
index adf5141d7eb5f927255ed2b067548dc1e6aa9ca4..759205071a8d08ca0e1020dc0d2be26b2eca0403 100644
--- a/Source/core/html/LabelsNodeList.cpp
+++ b/Source/core/html/LabelsNodeList.cpp
@@ -43,9 +43,9 @@ LabelsNodeList::~LabelsNodeList()
ownerNode()->nodeLists()->removeCacheWithAtomicName(this, LabelsNodeListType, starAtom);
}
-bool LabelsNodeList::nodeMatches(Element* testNode) const
+bool LabelsNodeList::nodeMatches(const Element& testNode) const
{
- return testNode->hasTagName(labelTag) && toHTMLLabelElement(testNode)->control() == ownerNode();
+ return testNode.hasTagName(labelTag) && toHTMLLabelElement(testNode).control() == ownerNode();
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698