Index: Source/core/svg/SVGRectElement.h |
diff --git a/Source/core/svg/SVGRectElement.h b/Source/core/svg/SVGRectElement.h |
index 2c631b81ac7145596f5b990fde15055413e8d302..750d4ea812f5482feb605f1d858a00814238fa7c 100644 |
--- a/Source/core/svg/SVGRectElement.h |
+++ b/Source/core/svg/SVGRectElement.h |
@@ -59,11 +59,7 @@ private: |
END_DECLARE_ANIMATED_PROPERTIES |
}; |
-inline SVGRectElement* toSVGRectElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::rectTag)); |
- return static_cast<SVGRectElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGRectElement, hasTagName(SVGNames::rectTag)); |
} // namespace WebCore |