Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Unified Diff: Source/core/layout/svg/LayoutSVGResourceClipper.cpp

Issue 1193433004: Blink-side contiguous allocation of display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ready for review Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698