Index: Source/core/rendering/RenderCombineText.h |
diff --git a/Source/core/rendering/RenderCombineText.h b/Source/core/rendering/RenderCombineText.h |
index cddaab1d56f930e81a795b71b959a4abadf7c89e..5cce871d62ba3f85f83f330fd3cb54e898c590dc 100644 |
--- a/Source/core/rendering/RenderCombineText.h |
+++ b/Source/core/rendering/RenderCombineText.h |
@@ -49,20 +49,7 @@ private: |
bool m_needsFontUpdate : 1; |
}; |
-inline RenderCombineText* toRenderCombineText(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isCombineText()); |
- return static_cast<RenderCombineText*>(object); |
-} |
- |
-inline const RenderCombineText* toRenderCombineText(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isCombineText()); |
- return static_cast<const RenderCombineText*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderCombineText(const RenderCombineText*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderCombineText, isCombineText()); |
} // namespace WebCore |