Index: Source/core/html/HTMLMarqueeElement.h |
diff --git a/Source/core/html/HTMLMarqueeElement.h b/Source/core/html/HTMLMarqueeElement.h |
index c743d7d655e581da96ba8c91d16714fdff57ccdf..284e3c9d01f18a30652a0ea7b2725ca4b82860ce 100644 |
--- a/Source/core/html/HTMLMarqueeElement.h |
+++ b/Source/core/html/HTMLMarqueeElement.h |
@@ -66,11 +66,7 @@ private: |
RenderMarquee* renderMarquee() const; |
}; |
-inline HTMLMarqueeElement* toHTMLMarqueeElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::marqueeTag)); |
- return static_cast<HTMLMarqueeElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLMarqueeElement, hasTagName(HTMLNames::marqueeTag)); |
} // namespace WebCore |