Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: Source/core/rendering/RenderLayer.cpp

Issue 23856009: Add toRenderSVGResourceClipper() fuction, and use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGResourceClipper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGResourceClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698