Index: Source/core/paint/SVGMaskPainter.cpp |
diff --git a/Source/core/paint/SVGMaskPainter.cpp b/Source/core/paint/SVGMaskPainter.cpp |
index 3bde83583ec19977bac53bd8510fb0a0a6c31980..9aea7695f6b9e27dad2a32009fab970e3ba9a482 100644 |
--- a/Source/core/paint/SVGMaskPainter.cpp |
+++ b/Source/core/paint/SVGMaskPainter.cpp |
@@ -76,10 +76,10 @@ void SVGMaskPainter::drawMaskForLayoutObject(GraphicsContext* context, const Lay |
AffineTransform contentTransformation; |
RefPtr<const SkPicture> maskContentPicture = m_mask.createContentPicture(contentTransformation, targetBoundingBox, context); |
- LayoutObjectDrawingRecorder drawingRecorder(*context, layoutObject, DisplayItem::SVGMask, targetPaintInvalidationRect); |
- if (drawingRecorder.canUseCachedDrawing()) |
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, layoutObject, DisplayItem::SVGMask)) |
return; |
+ LayoutObjectDrawingRecorder drawingRecorder(*context, layoutObject, DisplayItem::SVGMask, targetPaintInvalidationRect); |
context->save(); |
context->concatCTM(contentTransformation); |
context->drawPicture(maskContentPicture.get()); |