| Index: Source/core/paint/SVGImagePainter.cpp
|
| diff --git a/Source/core/paint/SVGImagePainter.cpp b/Source/core/paint/SVGImagePainter.cpp
|
| index 4601ae3a55bc4d0e730b9d680cbafc472da66642..d63dc09ea5597c56c3c1a78b03c18412ed4789c3 100644
|
| --- a/Source/core/paint/SVGImagePainter.cpp
|
| +++ b/Source/core/paint/SVGImagePainter.cpp
|
| @@ -36,8 +36,8 @@ void SVGImagePainter::paint(const PaintInfo& paintInfo)
|
| TransformRecorder transformRecorder(*paintInfoBeforeFiltering.context, m_layoutSVGImage, m_layoutSVGImage.localToParentTransform());
|
| {
|
| SVGPaintContext paintContext(m_layoutSVGImage, paintInfoBeforeFiltering);
|
| - if (paintContext.applyClipMaskAndFilterIfNecessary() && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintContext.paintInfo().context, m_layoutSVGImage, paintContext.paintInfo().phase)) {
|
| - LayoutObjectDrawingRecorder recorder(*paintContext.paintInfo().context, m_layoutSVGImage, paintContext.paintInfo().phase, boundingBox);
|
| + if (paintContext.applyClipMaskAndFilterIfNecessary() && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintContext.paintInfo().context, m_layoutSVGImage, paintContext.paintInfo().phase, LayoutPoint())) {
|
| + LayoutObjectDrawingRecorder recorder(*paintContext.paintInfo().context, m_layoutSVGImage, paintContext.paintInfo().phase, boundingBox, LayoutPoint());
|
| // There's no need to cache a buffered SkPicture with slimming
|
| // paint because it's automatically done in the display list.
|
| if (m_layoutSVGImage.style()->svgStyle().bufferedRendering() != BR_STATIC || RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| @@ -60,7 +60,7 @@ void SVGImagePainter::paint(const PaintInfo& paintInfo)
|
| outlinePaintInfo.phase = PaintPhaseSelfOutline;
|
| LayoutRect layoutBoundingBox(boundingBox);
|
| LayoutRect visualOverflowRect = ObjectPainter::outlineBounds(layoutBoundingBox, m_layoutSVGImage.styleRef());
|
| - ObjectPainter(m_layoutSVGImage).paintOutline(outlinePaintInfo, layoutBoundingBox, visualOverflowRect);
|
| + ObjectPainter(m_layoutSVGImage).paintOutline(outlinePaintInfo, layoutBoundingBox, visualOverflowRect, LayoutPoint());
|
| }
|
| }
|
|
|
|
|