Index: Source/core/svg/graphics/SVGImage.h |
diff --git a/Source/core/svg/graphics/SVGImage.h b/Source/core/svg/graphics/SVGImage.h |
index 95572672ce3b9a75251136e1a55f5fa3ef42e01b..19838c9e31dd1c7d6f07e64c254f5120ae7514e5 100644 |
--- a/Source/core/svg/graphics/SVGImage.h |
+++ b/Source/core/svg/graphics/SVGImage.h |
@@ -101,11 +101,7 @@ private: |
IntSize m_intrinsicSize; |
}; |
-inline SVGImage* toSVGImage(Image* image) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!image || image->isSVGImage()); |
- return static_cast<SVGImage*>(image); |
-} |
+DEFINE_IMAGE_TYPE_CASTS(SVGImage); |
class ImageObserverDisabler { |
WTF_MAKE_NONCOPYABLE(ImageObserverDisabler); |