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

Unified Diff: Source/core/rendering/svg/RenderSVGResourceMasker.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/RenderSVGResourceMasker.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResourceMasker.cpp b/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
index 60bcfb639f711a501e94e61f8fa36b8a9bcd7eed..3bf51d67bdc40059aadb4014373c71c9226666fa 100644
--- a/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
+++ b/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
@@ -115,14 +115,15 @@ void RenderSVGResourceMasker::drawMaskForRenderer(GraphicsContext* context, cons
context->concatCTM(contentTransformation);
}
- if (!m_maskContentDisplayList)
- createDisplayList(context, contentTransformation);
+ if (!m_maskContentDisplayList) {
+ SubtreeContentTransformScope contentTransformScope(contentTransformation);
+ createDisplayList(context);
+ }
ASSERT(m_maskContentDisplayList);
context->drawDisplayList(m_maskContentDisplayList.get());
}
-void RenderSVGResourceMasker::createDisplayList(GraphicsContext* context,
- const AffineTransform& contentTransform)
+void RenderSVGResourceMasker::createDisplayList(GraphicsContext* context)
{
ASSERT(context);
@@ -139,7 +140,7 @@ void RenderSVGResourceMasker::createDisplayList(GraphicsContext* context,
if (!style || style->display() == NONE || style->visibility() != VISIBLE)
continue;
- SVGRenderingContext::renderSubtree(context, renderer, contentTransform);
+ SVGRenderingContext::renderSubtree(context, renderer);
}
m_maskContentDisplayList = context->endRecording();
}
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceMasker.h ('k') | Source/core/rendering/svg/RenderSVGResourcePattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698