Index: Source/core/rendering/RenderTableCell.h |
diff --git a/Source/core/rendering/RenderTableCell.h b/Source/core/rendering/RenderTableCell.h |
index 6926749281f88b46f1ce01e2bdba7afc5b7dde28..9eeb48e4f019d0fee59240f9b7dc812ae3610c71 100644 |
--- a/Source/core/rendering/RenderTableCell.h |
+++ b/Source/core/rendering/RenderTableCell.h |
@@ -287,20 +287,7 @@ private: |
int m_intrinsicPaddingAfter; |
}; |
-inline RenderTableCell* toRenderTableCell(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCell()); |
- return static_cast<RenderTableCell*>(object); |
-} |
- |
-inline const RenderTableCell* toRenderTableCell(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCell()); |
- return static_cast<const RenderTableCell*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderTableCell(const RenderTableCell*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCell, isTableCell()); |
} // namespace WebCore |