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()); |