Index: Source/core/html/HTMLFormControlElement.h |
diff --git a/Source/core/html/HTMLFormControlElement.h b/Source/core/html/HTMLFormControlElement.h |
index 8a89ebcf414f2458f6cb2849a80fb2977e64d14d..2dfc001e530181d0481c1cb0c1a935344e7adbd6 100644 |
--- a/Source/core/html/HTMLFormControlElement.h |
+++ b/Source/core/html/HTMLFormControlElement.h |
@@ -181,12 +181,12 @@ private: |
bool m_wasFocusedByMouse : 1; |
}; |
-inline bool isHTMLFormControlElement(const Node& node) |
+inline bool isHTMLFormControlElement(const Element& element) |
{ |
- return node.isElementNode() && toElement(node).isFormControlElement(); |
+ return element.isFormControlElement(); |
} |
-DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); |
+DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); |
DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, control->isFormControlElement(), control.isFormControlElement()); |
} // namespace |