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

Unified Diff: Source/core/paint/SVGRootPainter.cpp

Issue 802833003: Remove the SVG paint culling optimization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test for the moon lander. Created 6 years 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 | « Source/core/paint/SVGImagePainter.cpp ('k') | Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGRootPainter.cpp
diff --git a/Source/core/paint/SVGRootPainter.cpp b/Source/core/paint/SVGRootPainter.cpp
index 1ff87c2de3ba803f6ebd5e309caca99830d038c1..98a9ae7132a21e38ce61f6297f4e8ae0cc175ed9 100644
--- a/Source/core/paint/SVGRootPainter.cpp
+++ b/Source/core/paint/SVGRootPainter.cpp
@@ -52,6 +52,9 @@ void SVGRootPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintO
IntPoint adjustedPaintOffset = roundedIntPoint(paintOffset);
childPaintInfo.applyTransform(AffineTransform::translation(adjustedPaintOffset.x(), adjustedPaintOffset.y()) * m_renderSVGRoot.localToBorderBoxTransform());
+ // SVG doesn't use paintOffset internally but we need to bake it into the paint rect.
+ childPaintInfo.rect.move(-adjustedPaintOffset.x(), -adjustedPaintOffset.y());
+
SVGRenderingContext renderingContext;
if (childPaintInfo.phase == PaintPhaseForeground) {
renderingContext.prepareToRenderSVGContent(&m_renderSVGRoot, childPaintInfo);
« no previous file with comments | « Source/core/paint/SVGImagePainter.cpp ('k') | Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698