Index: Source/core/html/shadow/HTMLShadowElement.h |
diff --git a/Source/core/html/shadow/HTMLShadowElement.h b/Source/core/html/shadow/HTMLShadowElement.h |
index b9943bd3364e6dfd5719bfd1d49db613c0e63052..c528127c25cabf31007fdd5f4040bd6205d13738 100644 |
--- a/Source/core/html/shadow/HTMLShadowElement.h |
+++ b/Source/core/html/shadow/HTMLShadowElement.h |
@@ -55,17 +55,7 @@ inline bool isHTMLShadowElement(const Node* node) |
return node->hasTagName(HTMLNames::shadowTag); |
} |
-inline HTMLShadowElement* toHTMLShadowElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLShadowElement(node)); |
- return static_cast<HTMLShadowElement*>(node); |
-} |
- |
-inline const HTMLShadowElement* toHTMLShadowElement(const Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLShadowElement(node)); |
- return static_cast<const HTMLShadowElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLShadowElement, hasTagName(HTMLNames::shadowTag)); |
inline bool isActiveShadowInsertionPoint(const Node* node) |
{ |