Index: Source/core/html/ImageDocument.h |
diff --git a/Source/core/html/ImageDocument.h b/Source/core/html/ImageDocument.h |
index 9400112ca68b53646292f67799fe13d3f106057c..896a46261da7f9affb5c064c054959087710a58b 100644 |
--- a/Source/core/html/ImageDocument.h |
+++ b/Source/core/html/ImageDocument.h |
@@ -72,20 +72,7 @@ private: |
bool m_shouldShrinkImage; |
}; |
-inline ImageDocument* toImageDocument(Document* document) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isImageDocument()); |
- return static_cast<ImageDocument*>(document); |
-} |
- |
-inline const ImageDocument* toImageDocument(const Document* document) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!document || document->isImageDocument()); |
- return static_cast<const ImageDocument*>(document); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toImageDocument(const ImageDocument*); |
+DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); |
} |