Index: Source/core/rendering/svg/RenderSVGText.h |
diff --git a/Source/core/rendering/svg/RenderSVGText.h b/Source/core/rendering/svg/RenderSVGText.h |
index fa1f652e8b5bd3ef12110d0fe75c4ae5df659d47..56fb0db8e4962c282bf483ed1d519bfcb761b435 100644 |
--- a/Source/core/rendering/svg/RenderSVGText.h |
+++ b/Source/core/rendering/svg/RenderSVGText.h |
@@ -101,20 +101,7 @@ private: |
Vector<SVGTextLayoutAttributes*> m_layoutAttributes; |
}; |
-inline RenderSVGText* toRenderSVGText(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGText()); |
- return static_cast<RenderSVGText*>(object); |
-} |
- |
-inline const RenderSVGText* toRenderSVGText(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGText()); |
- return static_cast<const RenderSVGText*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderSVGText(const RenderSVGText*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGText, isSVGText()); |
} |