Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index c709e4824d7c7a6fc6ca9993cfd059d42e29dc75..921ed7ab70a26a73b75d187cba4117cd86bf2fa3 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -3574,8 +3574,7 @@ void RenderLayer::paintLayerContents(GraphicsContext* context, const LayerPainti |
rootRelativeBoundsComputed = true; |
} |
- // FIXME: This should use a safer cast such as toRenderSVGResourceContainer(). |
- resourceClipper = static_cast<RenderSVGResourceClipper*>(element->renderer()); |
+ resourceClipper = toRenderSVGResourceClipper(element->renderer()->toRenderSVGResourceContainer()); |
if (!resourceClipper->applyClippingToContext(renderer(), rootRelativeBounds, paintingInfo.paintDirtyRect, context)) { |
// No need to post-apply the clipper if this failed. |
resourceClipper = 0; |