Index: Source/core/html/HTMLFormElement.h |
diff --git a/Source/core/html/HTMLFormElement.h b/Source/core/html/HTMLFormElement.h |
index 31a88ab3b6b3bf227151a2af84c0011bd9fa813a..b547e58a93ef8dadfd3c48e1ef30a5ca808da2b3 100644 |
--- a/Source/core/html/HTMLFormElement.h |
+++ b/Source/core/html/HTMLFormElement.h |
@@ -187,11 +187,7 @@ private: |
Timer<HTMLFormElement> m_requestAutocompleteTimer; |
}; |
-inline HTMLFormElement* toHTMLFormElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::formTag)); |
- return static_cast<HTMLFormElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLFormElement, hasTagName(HTMLNames::formTag)); |
} // namespace WebCore |