Index: Source/core/rendering/RenderBoxModelObject.h |
diff --git a/Source/core/rendering/RenderBoxModelObject.h b/Source/core/rendering/RenderBoxModelObject.h |
index 7f8d320b54cbd813ed4f377361f991ab99c8af6c..13dd300de4756cccbe9e0af3a2fed6c678aa3d2f 100644 |
--- a/Source/core/rendering/RenderBoxModelObject.h |
+++ b/Source/core/rendering/RenderBoxModelObject.h |
@@ -332,20 +332,7 @@ private: |
Color, EBorderStyle, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); |
}; |
-inline RenderBoxModelObject* toRenderBoxModelObject(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); |
- return static_cast<RenderBoxModelObject*>(object); |
-} |
- |
-inline const RenderBoxModelObject* toRenderBoxModelObject(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); |
- return static_cast<const RenderBoxModelObject*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderBoxModelObject(const RenderBoxModelObject*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
} // namespace WebCore |