Index: Source/core/html/HTMLIFrameElement.h |
diff --git a/Source/core/html/HTMLIFrameElement.h b/Source/core/html/HTMLIFrameElement.h |
index ac821c26a5ac5504dc73f14f91216a41cc9344d2..9aa74ae2ff15a60c695cec14372964e902cec1bc 100644 |
--- a/Source/core/html/HTMLIFrameElement.h |
+++ b/Source/core/html/HTMLIFrameElement.h |
@@ -56,6 +56,12 @@ private: |
bool m_didLoadNonEmptyDocument; |
}; |
+inline HTMLIFrameElement* toHTMLIFrameElement(Node* node) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::iframeTag)); |
+ return static_cast<HTMLIFrameElement*>(node); |
+} |
+ |
} // namespace WebCore |
#endif // HTMLIFrameElement_h |