Index: Source/core/html/HTMLIFrameElement.h |
diff --git a/Source/core/html/HTMLIFrameElement.h b/Source/core/html/HTMLIFrameElement.h |
index 87a5344029c12295bd60432491cc41171b721dd1..3ce7371ea179a39fdbcd4369bbc55175359e812f 100644 |
--- a/Source/core/html/HTMLIFrameElement.h |
+++ b/Source/core/html/HTMLIFrameElement.h |
@@ -57,11 +57,7 @@ private: |
bool m_didLoadNonEmptyDocument; |
}; |
-inline HTMLIFrameElement* toHTMLIFrameElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::iframeTag)); |
- return static_cast<HTMLIFrameElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLIFrameElement, hasTagName(HTMLNames::iframeTag)); |
} // namespace WebCore |