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

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: Rebase 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/parser/HTMLConstructionSite.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 e1785422745696ec496b2f08227074d0535a2f9f..1f6068c736c895009f4f5a818b0ff542c2568aa7 100644
--- a/Source/core/html/LabelsNodeList.cpp
+++ b/Source/core/html/LabelsNodeList.cpp
@@ -45,7 +45,7 @@ LabelsNodeList::~LabelsNodeList()
bool LabelsNodeList::elementMatches(const Element& element) const
{
- return element.hasTagName(labelTag) && toHTMLLabelElement(element).control() == ownerNode();
+ return isHTMLLabelElement(element) && toHTMLLabelElement(element).control() == ownerNode();
}
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/html/MediaDocument.cpp » ('j') | Source/core/html/parser/HTMLConstructionSite.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698