| Index: Source/core/paint/SVGShapePainter.cpp
|
| diff --git a/Source/core/paint/SVGShapePainter.cpp b/Source/core/paint/SVGShapePainter.cpp
|
| index 0cb6aff4f7cf1ed8b7011907e2fc4953563a2ae3..1b240fa4a7e3dbeb4683035aa35a6f7460946e97 100644
|
| --- a/Source/core/paint/SVGShapePainter.cpp
|
| +++ b/Source/core/paint/SVGShapePainter.cpp
|
| @@ -21,6 +21,7 @@
|
| #include "platform/graphics/paint/DisplayItemListContextRecorder.h"
|
| #include "third_party/skia/include/core/SkPaint.h"
|
| #include "third_party/skia/include/core/SkPicture.h"
|
| +#include "wtf/Optional.h"
|
|
|
| namespace blink {
|
|
|
| @@ -220,9 +221,9 @@ void SVGShapePainter::paintMarker(const PaintInfo& paintInfo, LayoutSVGResourceM
|
| markerPaintInfo.rect = LayoutRect::infiniteIntRect();
|
|
|
| TransformRecorder transformRecorder(*markerPaintInfo.context, marker, marker.markerTransformation(position.origin, position.angle, strokeWidth));
|
| - OwnPtr<FloatClipRecorder> clipRecorder;
|
| + Optional<FloatClipRecorder> clipRecorder;
|
| if (SVGLayoutSupport::isOverflowHidden(&marker))
|
| - clipRecorder = adoptPtr(new FloatClipRecorder(*markerPaintInfo.context, marker, markerPaintInfo.phase, marker.viewport()));
|
| + clipRecorder.emplace(*markerPaintInfo.context, marker, markerPaintInfo.phase, marker.viewport());
|
|
|
| SVGContainerPainter(marker).paint(markerPaintInfo);
|
| }
|
|
|