Index: Source/core/html/HTMLObjectElement.h |
diff --git a/Source/core/html/HTMLObjectElement.h b/Source/core/html/HTMLObjectElement.h |
index 57f232e5f08c3a47d92d8b8cff44a41bcdaea0cf..959f2f2f4bbb43bb7f8169c5168762f26b74a787 100644 |
--- a/Source/core/html/HTMLObjectElement.h |
+++ b/Source/core/html/HTMLObjectElement.h |
@@ -114,11 +114,7 @@ private: |
bool m_useFallbackContent : 1; |
}; |
-inline HTMLObjectElement* toHTMLObjectElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::objectTag)); |
- return static_cast<HTMLObjectElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLObjectElement, hasTagName(HTMLNames::objectTag)); |
inline const HTMLObjectElement* toHTMLObjectElement(const FormAssociatedElement* element) |
{ |