Index: Source/core/svg/SVGPolylineElement.h |
diff --git a/Source/core/svg/SVGPolylineElement.h b/Source/core/svg/SVGPolylineElement.h |
index fe1a5c078acc2457c914393b1d3e63ebe82cc58a..97fc80e35e50d641aa71da353b8d6e4b3f3527ff 100644 |
--- a/Source/core/svg/SVGPolylineElement.h |
+++ b/Source/core/svg/SVGPolylineElement.h |
@@ -34,11 +34,7 @@ private: |
SVGPolylineElement(const QualifiedName&, Document&); |
}; |
-inline SVGPolylineElement* toSVGPolylineElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::polylineTag)); |
- return static_cast<SVGPolylineElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGPolylineElement, hasTagName(SVGNames::polylineTag)); |
} // namespace WebCore |