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

Unified Diff: Source/core/html/LabelsNodeList.cpp

Issue 198453003: Use new is*Element() helper functions more in HTML code (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/html/MediaDocument.cpp » ('j') | Source/core/html/MediaDocument.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/LabelsNodeList.cpp
diff --git a/Source/core/html/LabelsNodeList.cpp b/Source/core/html/LabelsNodeList.cpp
index 1dba7dc762d9cf8cd1b6c86ac349ce6d85ffe163..a06cf398797437c1c384ea4bb0612db0e943f058 100644
--- a/Source/core/html/LabelsNodeList.cpp
+++ b/Source/core/html/LabelsNodeList.cpp
@@ -45,7 +45,7 @@ LabelsNodeList::~LabelsNodeList()
bool LabelsNodeList::nodeMatches(const Element& testNode) const
{
- return testNode.hasTagName(labelTag) && toHTMLLabelElement(testNode).control() == ownerNode();
+ return isHTMLLabelElement(testNode) && toHTMLLabelElement(testNode).control() == ownerNode();
}
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/html/MediaDocument.cpp » ('j') | Source/core/html/MediaDocument.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698