Index: Source/core/svg/SVGDocument.h |
diff --git a/Source/core/svg/SVGDocument.h b/Source/core/svg/SVGDocument.h |
index 9f55055d3c32fd52451f9233405399289582f723..a9b3392c39839c291034396f14871253bc6459c2 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(SVGDocument); |
} // namespace WebCore |