Index: Source/core/rendering/RenderLayerCompositor.cpp |
diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp |
index 5a8226241d516c8d0998603a558413e566d3b1ec..6a6ca61d4324d04b273d07e11dee3589c084ad59 100644 |
--- a/Source/core/rendering/RenderLayerCompositor.cpp |
+++ b/Source/core/rendering/RenderLayerCompositor.cpp |
@@ -1789,7 +1789,7 @@ bool RenderLayerCompositor::requiresCompositingForCanvas(RenderObject* renderer) |
return false; |
if (renderer->isCanvas()) { |
- HTMLCanvasElement* canvas = static_cast<HTMLCanvasElement*>(renderer->node()); |
+ HTMLCanvasElement* canvas = toHTMLCanvasElement(renderer->node()); |
#if USE(COMPOSITING_FOR_SMALL_CANVASES) |
bool isCanvasLargeEnoughToForceCompositing = true; |
#else |