Index: Source/core/html/HTMLFrameElement.h |
diff --git a/Source/core/html/HTMLFrameElement.h b/Source/core/html/HTMLFrameElement.h |
index 1cd3ab065aaec663aa1990d4a8bdd84aa15dfab8..78392b3986d32f87f49fe491e18b5a8e4378425c 100644 |
--- a/Source/core/html/HTMLFrameElement.h |
+++ b/Source/core/html/HTMLFrameElement.h |
@@ -52,11 +52,7 @@ private: |
bool m_frameBorderSet; |
}; |
-inline HTMLFrameElement* toHTMLFrameElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::frameTag)); |
- return static_cast<HTMLFrameElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLFrameElement, hasTagName(HTMLNames::frameTag)); |
} // namespace WebCore |