Index: Source/core/rendering/svg/RenderSVGResourceMasker.h |
diff --git a/Source/core/rendering/svg/RenderSVGResourceMasker.h b/Source/core/rendering/svg/RenderSVGResourceMasker.h |
index db862742eeb31ef327ee21f1a73b912ffbe38771..bf8aa0866f8d69ef7a50f0f06abf3657dc07c4b0 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourceMasker.h |
+++ b/Source/core/rendering/svg/RenderSVGResourceMasker.h |
@@ -63,11 +63,7 @@ private: |
FloatRect m_maskContentBoundaries; |
}; |
-inline RenderSVGResourceMasker* toRenderSVGResourceMasker(RenderSVGResource* resource) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!resource || resource->resourceType() == MaskerResourceType); |
- return static_cast<RenderSVGResourceMasker*>(resource); |
-} |
+DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(RenderSVGResourceMasker, MaskerResourceType); |
} |