Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1951)

Unified Diff: Source/core/svg/graphics/SVGImage.h

Issue 106193004: Introduce DEFINE_IMAGE_TYPE_CASTS, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/DragImage.cpp ('k') | Source/platform/graphics/BitmapImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/platform/DragImage.cpp ('k') | Source/platform/graphics/BitmapImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698