Index: Source/core/html/HTMLFrameElement.h |
diff --git a/Source/core/html/HTMLFrameElement.h b/Source/core/html/HTMLFrameElement.h |
index 087d7ab6c51e7a723142cb3e26b822534c9ee902..01bc27357c0b039cfb690a0bea5dca7869efbce8 100644 |
--- a/Source/core/html/HTMLFrameElement.h |
+++ b/Source/core/html/HTMLFrameElement.h |
@@ -52,6 +52,12 @@ private: |
bool m_frameBorderSet; |
}; |
+inline HTMLFrameElement* toHTMLFrameElement(Node* node) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::frameTag)); |
+ return static_cast<HTMLFrameElement*>(node); |
+} |
+ |
} // namespace WebCore |
#endif // HTMLFrameElement_h |