Index: Source/core/rendering/RenderTableCol.h |
diff --git a/Source/core/rendering/RenderTableCol.h b/Source/core/rendering/RenderTableCol.h |
index dd3e1b0d80a03c42e7c23fbb10988fa08bde0a5c..a28f36085bbe3f00e95cd9bc8d32915578e2962c 100644 |
--- a/Source/core/rendering/RenderTableCol.h |
+++ b/Source/core/rendering/RenderTableCol.h |
@@ -103,20 +103,7 @@ private: |
unsigned m_span; |
}; |
-inline RenderTableCol* toRenderTableCol(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderTableCol()); |
- return static_cast<RenderTableCol*>(object); |
-} |
- |
-inline const RenderTableCol* toRenderTableCol(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderTableCol()); |
- return static_cast<const RenderTableCol*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderTableCol(const RenderTableCol*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol()); |
} |