Index: Source/core/svg/SVGDocument.h |
diff --git a/Source/core/svg/SVGDocument.h b/Source/core/svg/SVGDocument.h |
index 9f55055d3c32fd52451f9233405399289582f723..bc83c83b84931de2ff105eddfa818f00c6ed6112 100644 |
--- a/Source/core/svg/SVGDocument.h |
+++ b/Source/core/svg/SVGDocument.h |
@@ -55,20 +55,7 @@ private: |
FloatPoint m_translate; |
}; |
-inline SVGDocument* toSVGDocument(Document* document) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isSVGDocument()); |
- return static_cast<SVGDocument*>(document); |
-} |
- |
-inline const SVGDocument* toSVGDocument(const Document* document) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isSVGDocument()); |
- return static_cast<const SVGDocument*>(document); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toSVGDocument(const SVGDocument*); |
+DEFINE_DOCUMENT_TYPE_CASTS_WITH_FUNCTION(SVGDocument); |
} // namespace WebCore |