Index: Source/core/html/HTMLScriptElement.h |
diff --git a/Source/core/html/HTMLScriptElement.h b/Source/core/html/HTMLScriptElement.h |
index dd1c1f68cfdd0457500066b63879c30ab7a1fec5..153f271dd9a9598590f0e95e4f88bb0a4035a869 100644 |
--- a/Source/core/html/HTMLScriptElement.h |
+++ b/Source/core/html/HTMLScriptElement.h |
@@ -67,6 +67,12 @@ private: |
virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren(); |
}; |
+inline HTMLScriptElement* toHTMLScriptElement(Node* node) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::scriptTag)); |
+ return static_cast<HTMLScriptElement*>(node); |
+} |
+ |
} //namespace |
#endif |