Index: Source/core/rendering/RenderBlock.h |
diff --git a/Source/core/rendering/RenderBlock.h b/Source/core/rendering/RenderBlock.h |
index 643e3cdc9dc66f050e8019a348c984e23f1fe1f5..5899b43b90c6a869846befe2eee06cb2a2127435 100644 |
--- a/Source/core/rendering/RenderBlock.h |
+++ b/Source/core/rendering/RenderBlock.h |
@@ -879,20 +879,7 @@ private: |
static bool s_canPropagateFloatIntoSibling; |
}; |
-inline RenderBlock* toRenderBlock(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderBlock()); |
- return static_cast<RenderBlock*>(object); |
-} |
- |
-inline const RenderBlock* toRenderBlock(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderBlock()); |
- return static_cast<const RenderBlock*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderBlock(const RenderBlock*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
} // namespace WebCore |