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

Unified Diff: Source/core/html/LabelableElement.h

Issue 406843002: Optimize hasTagName when called on an HTMLElement / SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/HTMLUnknownElement.h ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/LabelableElement.h
diff --git a/Source/core/html/LabelableElement.h b/Source/core/html/LabelableElement.h
index 0611008bd7cde5762b27f5b31b63fa2a219ca755..2819a31dcde60991c2a75f57af22d210babee97c 100644
--- a/Source/core/html/LabelableElement.h
+++ b/Source/core/html/LabelableElement.h
@@ -54,11 +54,6 @@ private:
virtual bool isLabelable() const OVERRIDE FINAL { return true; }
};
-inline bool isLabelableElement(const Element& element)
-{
- return element.isHTMLElement() && toHTMLElement(element).isLabelable();
-}
-
inline bool isLabelableElement(const HTMLElement& element)
{
return element.isLabelable();
« no previous file with comments | « Source/core/html/HTMLUnknownElement.h ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698