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

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: Add ListContainer::AllocateAndConstructWithArguments and a TODO in DisplayItemList::findMatchingIte… 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 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);
« no previous file with comments | « Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp ('k') | Source/core/paint/BoxClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698