| Index: Source/core/paint/DeprecatedPaintLayerPainter.cpp
|
| diff --git a/Source/core/paint/DeprecatedPaintLayerPainter.cpp b/Source/core/paint/DeprecatedPaintLayerPainter.cpp
|
| index b8e7a8be74105bfadadd94d82665ab5a4a7b5b50..7fca5d4a2f217d419a3951bd625a76f08d4f3ecb 100644
|
| --- a/Source/core/paint/DeprecatedPaintLayerPainter.cpp
|
| +++ b/Source/core/paint/DeprecatedPaintLayerPainter.cpp
|
| @@ -132,7 +132,7 @@ public:
|
| rootRelativeBounds = paintLayer.physicalBoundingBoxIncludingReflectionAndStackingChildren(paintingInfo.rootLayer, offsetFromRoot);
|
| rootRelativeBoundsComputed = true;
|
| }
|
| - m_clipPathRecorder.emplace(*context, *paintLayer.layoutObject(), clipPath->path(rootRelativeBounds));
|
| + m_clipPathRecorder.emplace(*context, *paintLayer.layoutObject(), clipPath->path(FloatRect(rootRelativeBounds)));
|
| }
|
| } else if (style.clipPath()->type() == ClipPathOperation::REFERENCE) {
|
| ReferenceClipPathOperation* referenceClipPathOperation = toReferenceClipPathOperation(style.clipPath());
|
| @@ -146,8 +146,8 @@ public:
|
| }
|
|
|
| m_resourceClipper = toLayoutSVGResourceClipper(toLayoutSVGResourceContainer(element->layoutObject()));
|
| - if (!SVGClipPainter(*m_resourceClipper).prepareEffect(*paintLayer.layoutObject(), rootRelativeBounds,
|
| - paintingInfo.paintDirtyRect, context, m_clipperState)) {
|
| + if (!SVGClipPainter(*m_resourceClipper).prepareEffect(*paintLayer.layoutObject(), FloatRect(rootRelativeBounds),
|
| + FloatRect(paintingInfo.paintDirtyRect), context, m_clipperState)) {
|
| // No need to post-apply the clipper if this failed.
|
| m_resourceClipper = 0;
|
| }
|
|
|