Index: Source/core/rendering/svg/RenderSVGInlineText.h |
diff --git a/Source/core/rendering/svg/RenderSVGInlineText.h b/Source/core/rendering/svg/RenderSVGInlineText.h |
index 8ce8fd2b0ebd5594382a990892ca9fe1aea87bef..1cbebb7d7578f288e7ac38410f015c7516ed5d6c 100644 |
--- a/Source/core/rendering/svg/RenderSVGInlineText.h |
+++ b/Source/core/rendering/svg/RenderSVGInlineText.h |
@@ -65,20 +65,7 @@ private: |
SVGTextLayoutAttributes m_layoutAttributes; |
}; |
-inline RenderSVGInlineText* toRenderSVGInlineText(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGInlineText()); |
- return static_cast<RenderSVGInlineText*>(object); |
-} |
- |
-inline const RenderSVGInlineText* toRenderSVGInlineText(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGInlineText()); |
- return static_cast<const RenderSVGInlineText*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderSVGInlineText(const RenderSVGInlineText*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGInlineText, isSVGInlineText()); |
} |