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