Index: Source/core/svg/SVGScriptElement.h |
diff --git a/Source/core/svg/SVGScriptElement.h b/Source/core/svg/SVGScriptElement.h |
index 10c5d4569a42e96fceca06a62ce548031ef395a8..544838b209a4445402a09c3aa192fede9b963847 100644 |
--- a/Source/core/svg/SVGScriptElement.h |
+++ b/Source/core/svg/SVGScriptElement.h |
@@ -94,11 +94,7 @@ private: |
OwnPtr<ScriptLoader> m_loader; |
}; |
-inline SVGScriptElement* toSVGScriptElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::scriptTag)); |
- return static_cast<SVGScriptElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGScriptElement, hasTagName(SVGNames::scriptTag)); |
} // namespace WebCore |