Index: Source/core/svg/SVGAnimateElement.h |
diff --git a/Source/core/svg/SVGAnimateElement.h b/Source/core/svg/SVGAnimateElement.h |
index 592613c691ceecd1b67528ae90957374a0cb6b8b..e8b2dc438ab235dfbf2313b5f4d3a77dd3cfbfdf 100644 |
--- a/Source/core/svg/SVGAnimateElement.h |
+++ b/Source/core/svg/SVGAnimateElement.h |
@@ -75,16 +75,16 @@ private: |
OwnPtr<SVGAnimatedTypeAnimator> m_animator; |
}; |
-inline SVGAnimateElement* toSVGAnimateElement(Element* element) |
+inline bool isSVGAnimateElement(const Node& node) |
{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!element |
- || element->hasTagName(SVGNames::animateTag) |
- || element->hasTagName(SVGNames::animateColorTag) |
- || element->hasTagName(SVGNames::animateTransformTag) |
- || element->hasTagName(SVGNames::setTag)); |
- return static_cast<SVGAnimateElement*>(element); |
+ return node.hasTagName(SVGNames::animateTag) |
+ || node.hasTagName(SVGNames::animateColorTag) |
+ || node.hasTagName(SVGNames::animateTransformTag) |
+ || node.hasTagName(SVGNames::setTag); |
} |
+DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement); |
+ |
} // namespace WebCore |
#endif // SVGAnimateElement_h |