Index: Source/core/html/HTMLDetailsElement.h |
diff --git a/Source/core/html/HTMLDetailsElement.h b/Source/core/html/HTMLDetailsElement.h |
index 55e635c74d3cd9ec0e750d38b085fe2f5043039c..55cc9560ea849a8f64e2c9615af93642a51c8673 100644 |
--- a/Source/core/html/HTMLDetailsElement.h |
+++ b/Source/core/html/HTMLDetailsElement.h |
@@ -54,11 +54,7 @@ inline bool isHTMLDetailsElement(const Element* element) |
return element->hasTagName(HTMLNames::detailsTag); |
} |
-inline HTMLDetailsElement* toHTMLDetailsElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLDetailsElement(node)); |
- return static_cast<HTMLDetailsElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLDetailsElement, hasTagName(HTMLNames::detailsTag)); |
} // namespace WebCore |