| Index: Source/core/paint/SVGMaskPainter.cpp
|
| diff --git a/Source/core/paint/SVGMaskPainter.cpp b/Source/core/paint/SVGMaskPainter.cpp
|
| index 1726d11ce10a95b25528553f45e0e3d49c6cd320..94d9f4a99cdce9a4502c2d780a84a72d8a83d4e5 100644
|
| --- a/Source/core/paint/SVGMaskPainter.cpp
|
| +++ b/Source/core/paint/SVGMaskPainter.cpp
|
| @@ -8,6 +8,7 @@
|
| #include "core/layout/PaintInfo.h"
|
| #include "core/layout/svg/LayoutSVGResourceMasker.h"
|
| #include "core/paint/CompositingRecorder.h"
|
| +#include "core/paint/LayoutObjectDrawingRecorder.h"
|
| #include "core/paint/TransformRecorder.h"
|
| #include "platform/graphics/paint/CompositingDisplayItem.h"
|
| #include "platform/graphics/paint/DisplayItemList.h"
|
| @@ -70,13 +71,9 @@ void SVGMaskPainter::drawMaskForLayoutObject(GraphicsContext* context, const Lay
|
|
|
| TransformRecorder recorder(*context, layoutObject, contentTransformation);
|
|
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - ASSERT(context->displayItemList());
|
| - context->displayItemList()->add(DrawingDisplayItem::create(layoutObject, DisplayItem::SVGMask, maskContentPicture));
|
| - } else {
|
| - DrawingDisplayItem maskPicture(layoutObject, DisplayItem::SVGMask, maskContentPicture);
|
| - maskPicture.replay(*context);
|
| - }
|
| + LayoutObjectDrawingRecorder drawingRecorder(*context, layoutObject, DisplayItem::SVGMask, LayoutRect::infiniteIntRect());
|
| + if (!drawingRecorder.canUseCachedDrawing())
|
| + context->drawPicture(maskContentPicture.get());
|
| }
|
|
|
| }
|
|
|