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

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

Issue 202813005: Add DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION() macro (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Slight clean up 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 | « Source/core/html/HTMLUnknownElement.h ('k') | Source/core/rendering/RenderTableCol.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 4497557e8aa0cfc8285b0f0a21ed38b058007a59..18f44085a74a637fb81ad0d8de4a4c99072290c2 100644
--- a/Source/core/html/LabelableElement.h
+++ b/Source/core/html/LabelableElement.h
@@ -50,12 +50,17 @@ private:
virtual bool isLabelable() const OVERRIDE FINAL { return true; }
};
-inline bool isLabelableElement(const Node& node)
+inline bool isLabelableElement(const Element& element)
{
- return node.isHTMLElement() && toHTMLElement(node).isLabelable();
+ return element.isHTMLElement() && toHTMLElement(element).isLabelable();
}
-DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(LabelableElement);
+inline bool isLabelableElement(const HTMLElement& element)
+{
+ return element.isLabelable();
+}
+
+DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(LabelableElement);
} // namespace WebCore
« no previous file with comments | « Source/core/html/HTMLUnknownElement.h ('k') | Source/core/rendering/RenderTableCol.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698