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

Unified Diff: Source/core/paint/SVGTextPainter.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/SVGShapePainter.cpp ('k') | Source/core/rendering/PaintInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGTextPainter.cpp
diff --git a/Source/core/paint/SVGTextPainter.cpp b/Source/core/paint/SVGTextPainter.cpp
index 5c80177165e5aa16d99883d9556de86be56264b0..bbf24a24053874ea5e88b09873801a9a066f0729 100644
--- a/Source/core/paint/SVGTextPainter.cpp
+++ b/Source/core/paint/SVGTextPainter.cpp
@@ -22,6 +22,10 @@ void SVGTextPainter::paint(const PaintInfo& paintInfo)
blockInfo.applyTransform(m_renderSVGText.localToParentTransform(), &stateSaver);
+ // When transitioning from SVG to block painters we need to keep the PaintInfo rect up-to-date
+ // because it can be used for clipping.
+ m_renderSVGText.updatePaintInfoRect(blockInfo.rect);
+
BlockPainter(m_renderSVGText).paint(blockInfo, LayoutPoint());
// Paint the outlines, if any
« no previous file with comments | « Source/core/paint/SVGShapePainter.cpp ('k') | Source/core/rendering/PaintInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698