Index: Source/core/svg/SVGFilterElement.h |
diff --git a/Source/core/svg/SVGFilterElement.h b/Source/core/svg/SVGFilterElement.h |
index d344fd280b29ada19bb81473be8d709b0699682d..f929a3e0b2e9fec3d87a703ef4dde1f16b5c56cb 100644 |
--- a/Source/core/svg/SVGFilterElement.h |
+++ b/Source/core/svg/SVGFilterElement.h |
@@ -79,11 +79,7 @@ private: |
HashSet<RefPtr<Node> > m_clientsToAdd; |
}; |
-inline SVGFilterElement* toSVGFilterElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::filterTag)); |
- return static_cast<SVGFilterElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGFilterElement, hasTagName(SVGNames::filterTag)); |
} |