Index: Source/core/svg/SVGLineElement.h |
diff --git a/Source/core/svg/SVGLineElement.h b/Source/core/svg/SVGLineElement.h |
index af514be6b495f62e4bf9bdf7fa6394bec163903b..ad09477246357f4ad0a6b162988dd3d1bcb5e979 100644 |
--- a/Source/core/svg/SVGLineElement.h |
+++ b/Source/core/svg/SVGLineElement.h |
@@ -57,11 +57,7 @@ private: |
END_DECLARE_ANIMATED_PROPERTIES |
}; |
-inline SVGLineElement* toSVGLineElement(Element* element) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::lineTag)); |
- return static_cast<SVGLineElement*>(element); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGLineElement, hasTagName(SVGNames::lineTag)); |
} // namespace WebCore |