Index: Source/core/rendering/RenderHTMLCanvas.h |
diff --git a/Source/core/rendering/RenderHTMLCanvas.h b/Source/core/rendering/RenderHTMLCanvas.h |
index 100482a5f6560e8d68d75533b71d25270237863a..6cdaf64a1da3672c8df0e4fbe87fb0d143f6636c 100644 |
--- a/Source/core/rendering/RenderHTMLCanvas.h |
+++ b/Source/core/rendering/RenderHTMLCanvas.h |
@@ -47,14 +47,7 @@ private: |
virtual void intrinsicSizeChanged() { canvasSizeChanged(); } |
}; |
-inline RenderHTMLCanvas* toRenderHTMLCanvas(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isCanvas()); |
- return static_cast<RenderHTMLCanvas*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderHTMLCanvas(const RenderHTMLCanvas*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderHTMLCanvas, isCanvas()); |
} // namespace WebCore |