| Index: Source/core/layout/svg/LayoutSVGResourceClipper.cpp
|
| diff --git a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
|
| index ca62f4c9caeaa0393a583b3ed9b09cc916edadb6..1645653ab0d80487b7c0cc94e0ac64a9084cf29e 100644
|
| --- a/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
|
| +++ b/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
|
| @@ -38,6 +38,7 @@
|
| #include "platform/graphics/paint/CompositingDisplayItem.h"
|
| #include "platform/graphics/paint/DisplayItemList.h"
|
| #include "platform/graphics/paint/DrawingDisplayItem.h"
|
| +#include "platform/graphics/paint/SkPictureBuilder.h"
|
| #include "third_party/skia/include/core/SkPicture.h"
|
|
|
| namespace blink {
|
| @@ -154,11 +155,7 @@ PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(Affin
|
| // userSpaceOnUse units (http://crbug.com/294900).
|
| FloatRect bounds = strokeBoundingBox();
|
|
|
| - OwnPtr<DisplayItemList> displayItemList;
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled())
|
| - displayItemList = DisplayItemList::create();
|
| - GraphicsContext context(displayItemList.get());
|
| - context.beginRecording(bounds);
|
| + SkPictureBuilder pictureBuilder(bounds);
|
|
|
| for (SVGElement* childElement = Traversal<SVGElement>::firstChild(*element()); childElement; childElement = Traversal<SVGElement>::nextSibling(*childElement)) {
|
| LayoutObject* layoutObject = childElement->layoutObject();
|
| @@ -188,13 +185,11 @@ PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(Affin
|
| // - masker/filter not applied when laying out the children
|
| // - fill is set to the initial fill paint server (solid, black)
|
| // - stroke is set to the initial stroke paint server (none)
|
| - PaintInfo info(&context, LayoutRect::infiniteIntRect(), PaintPhaseForeground, PaintBehaviorRenderingClipPathAsMask);
|
| + PaintInfo info(&pictureBuilder.context(), LayoutRect::infiniteIntRect(), PaintPhaseForeground, PaintBehaviorRenderingClipPathAsMask);
|
| layoutObject->paint(info, IntPoint());
|
| }
|
|
|
| - if (displayItemList)
|
| - displayItemList->commitNewDisplayItemsAndReplay(context);
|
| - m_clipContentPicture = context.endRecording();
|
| + m_clipContentPicture = pictureBuilder.endRecording();
|
| return m_clipContentPicture;
|
| }
|
|
|
|
|