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

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

Issue 666403002: Decouple content transform fiddling from SVGRenderingContext::renderSubtree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/RenderSVGResourceClipper.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResourceClipper.cpp b/Source/core/rendering/svg/RenderSVGResourceClipper.cpp
index fdd35d6a0ec12ee102194b6ee67a92b062bc4dc7..eb1135f52f9c0be8f674930527ad6f474eab998f 100644
--- a/Source/core/rendering/svg/RenderSVGResourceClipper.cpp
+++ b/Source/core/rendering/svg/RenderSVGResourceClipper.cpp
@@ -229,15 +229,16 @@ void RenderSVGResourceClipper::drawClipMaskContent(GraphicsContext* context, con
context->concatCTM(contentTransformation);
}
- if (!m_clipContentDisplayList)
- createDisplayList(context, contentTransformation);
+ if (!m_clipContentDisplayList) {
+ SubtreeContentTransformScope contentTransformScope(contentTransformation);
+ createDisplayList(context);
+ }
ASSERT(m_clipContentDisplayList);
context->drawDisplayList(m_clipContentDisplayList.get());
}
-void RenderSVGResourceClipper::createDisplayList(GraphicsContext* context,
- const AffineTransform& contentTransformation)
+void RenderSVGResourceClipper::createDisplayList(GraphicsContext* context)
{
ASSERT(context);
ASSERT(frame());
@@ -285,7 +286,7 @@ void RenderSVGResourceClipper::createDisplayList(GraphicsContext* context,
if (isUseElement)
renderer = childElement->renderer();
- SVGRenderingContext::renderSubtree(context, renderer, contentTransformation);
+ SVGRenderingContext::renderSubtree(context, renderer);
}
frame()->view()->setPaintBehavior(oldBehavior);
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceClipper.h ('k') | Source/core/rendering/svg/RenderSVGResourceMasker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698