Index: Source/core/html/HTMLParamElement.h |
diff --git a/Source/core/html/HTMLParamElement.h b/Source/core/html/HTMLParamElement.h |
index 55953fe7c878f7ae6d77d0681920610f112aa381..a5d07e2b686d7cdac0645d90618d2002996aa4e4 100644 |
--- a/Source/core/html/HTMLParamElement.h |
+++ b/Source/core/html/HTMLParamElement.h |
@@ -44,11 +44,7 @@ private: |
virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; |
}; |
-inline HTMLParamElement* toHTMLParamElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::paramTag)); |
- return static_cast<HTMLParamElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLParamElement, hasTagName(HTMLNames::paramTag)); |
} // namespace WebCore |