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

Unified Diff: Source/core/paint/SVGForeignObjectPainter.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/SVGContainerPainter.cpp ('k') | Source/core/paint/SVGImagePainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGForeignObjectPainter.cpp
diff --git a/Source/core/paint/SVGForeignObjectPainter.cpp b/Source/core/paint/SVGForeignObjectPainter.cpp
index 37e58373264d565e158680c17304a3bd69ac71f6..4cf697c9dc296506ab87b0b0dd31287124559857 100644
--- a/Source/core/paint/SVGForeignObjectPainter.cpp
+++ b/Source/core/paint/SVGForeignObjectPainter.cpp
@@ -23,6 +23,10 @@ void SVGForeignObjectPainter::paint(const PaintInfo& paintInfo)
GraphicsContextStateSaver stateSaver(*childPaintInfo.context);
childPaintInfo.applyTransform(m_renderSVGForeignObject.localTransform());
+ // 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_renderSVGForeignObject.updatePaintInfoRect(childPaintInfo.rect);
+
if (SVGRenderSupport::isOverflowHidden(&m_renderSVGForeignObject))
childPaintInfo.context->clip(m_renderSVGForeignObject.viewportRect());
« no previous file with comments | « Source/core/paint/SVGContainerPainter.cpp ('k') | Source/core/paint/SVGImagePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698