Index: Source/core/rendering/RenderInline.h |
diff --git a/Source/core/rendering/RenderInline.h b/Source/core/rendering/RenderInline.h |
index 6e2e7f9ff9c0a9b9555126009032f3efd507e15a..c69f0258daabee9d59bf33bacc2dfec4ce36f8df 100644 |
--- a/Source/core/rendering/RenderInline.h |
+++ b/Source/core/rendering/RenderInline.h |
@@ -187,20 +187,7 @@ private: |
bool m_alwaysCreateLineBoxes : 1; |
}; |
-inline RenderInline* toRenderInline(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderInline()); |
- return static_cast<RenderInline*>(object); |
-} |
- |
-inline const RenderInline* toRenderInline(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderInline()); |
- return static_cast<const RenderInline*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderInline(const RenderInline*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderInline, isRenderInline()); |
} // namespace WebCore |