Index: Source/core/html/HTMLScriptElement.h |
diff --git a/Source/core/html/HTMLScriptElement.h b/Source/core/html/HTMLScriptElement.h |
index 3340cfdfb009c0eba42232641add8cecd2db5ea4..325bc319c5ec10b5d3d425c23f99151693f28358 100644 |
--- a/Source/core/html/HTMLScriptElement.h |
+++ b/Source/core/html/HTMLScriptElement.h |
@@ -74,11 +74,7 @@ private: |
OwnPtr<ScriptLoader> m_loader; |
}; |
-inline HTMLScriptElement* toHTMLScriptElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::scriptTag)); |
- return static_cast<HTMLScriptElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLScriptElement, hasTagName(HTMLNames::scriptTag)); |
} //namespace |