Index: Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
diff --git a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
index 49bd5d6cb0b3563e199de4ce7004bde22392fe32..406f30768d7f7ba4c45a7360f4c2df479cb31736 100644 |
--- a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
+++ b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
@@ -137,7 +137,7 @@ bool LayoutSVGResourceClipper::tryPathOnlyClipping(const LayoutObject& layoutObj |
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { |
if (!context->displayItemList()->displayItemConstructionIsDisabled()) |
- context->displayItemList()->add(BeginClipPathDisplayItem::create(layoutObject, clipPath)); |
+ context->displayItemList()->createAndAppendIfNeeded<BeginClipPathDisplayItem>(layoutObject, clipPath); |
} else { |
BeginClipPathDisplayItem clipPathDisplayItem(layoutObject, clipPath); |
clipPathDisplayItem.replay(*context); |