Index: Source/core/svg/SVGScriptElement.h |
diff --git a/Source/core/svg/SVGScriptElement.h b/Source/core/svg/SVGScriptElement.h |
index f19529cf92ef18b402214130474abbb337eea901..820d5b24dc1a756f3214037edfd458619f56bae3 100644 |
--- a/Source/core/svg/SVGScriptElement.h |
+++ b/Source/core/svg/SVGScriptElement.h |
@@ -21,6 +21,7 @@ |
#ifndef SVGScriptElement_h |
#define SVGScriptElement_h |
+#include "SVGNames.h" |
#include "core/dom/ScriptElement.h" |
#include "core/svg/SVGAnimatedBoolean.h" |
#include "core/svg/SVGAnimatedString.h" |
@@ -85,6 +86,12 @@ private: |
Timer<SVGElement> m_svgLoadEventTimer; |
}; |
+inline SVGScriptElement* toSVGScriptElement(Node* node) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::scriptTag)); |
+ return static_cast<SVGScriptElement*>(node); |
+} |
+ |
} // namespace WebCore |
#endif |