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

Unified Diff: Source/core/rendering/svg/SVGRenderingContext.cpp

Issue 24921002: Make compositingState explicit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed first round of reviewer comments Created 7 years, 2 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
Index: Source/core/rendering/svg/SVGRenderingContext.cpp
diff --git a/Source/core/rendering/svg/SVGRenderingContext.cpp b/Source/core/rendering/svg/SVGRenderingContext.cpp
index 216a847dfc61f858c4e181f1f0ffe677415fda03..0d10e2e132e7b2704c659eb2413a7569a54680b1 100644
--- a/Source/core/rendering/svg/SVGRenderingContext.cpp
+++ b/Source/core/rendering/svg/SVGRenderingContext.cpp
@@ -226,7 +226,9 @@ void SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem(con
absoluteTransform = layerTransform->toAffineTransform() * absoluteTransform;
// We can stop at compositing layers, to match the backing resolution.
- if (layer->isComposited())
+ // FIXME: should we be computing the transform to the nearest composited layer,
+ // or the nearest composited layer that does not paint into its ancestor?
+ if (layer->backing())
break;
layer = layer->parent();

Powered by Google App Engine
This is Rietveld 408576698