Index: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp |
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp |
index 41059bb1ffc3f1a9ed5a8b1ff373c359b2a1a278..c9573219aea2a2a1cd930ea17335a1286e5ec13a 100644 |
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp |
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp |
@@ -17,6 +17,7 @@ |
#include "platform/graphics/ImageBuffer.h" |
#include "platform/graphics/PaintGeneratedImage.h" |
#include "platform/graphics/RecordingImageBufferSurface.h" |
+#include "wtf/PtrUtil.h" |
namespace blink { |
@@ -55,7 +56,7 @@ PassRefPtr<Image> CSSPaintDefinition::paint(const LayoutObject& layoutObject, co |
DCHECK(layoutObject.node()); |
PaintRenderingContext2D* renderingContext = PaintRenderingContext2D::create( |
- ImageBuffer::create(adoptPtr(new RecordingImageBufferSurface(size)))); |
+ ImageBuffer::create(wrapUnique(new RecordingImageBufferSurface(size)))); |
Geometry* geometry = Geometry::create(size); |
StylePropertyMap* styleMap = FilteredComputedStylePropertyMap::create( |
CSSComputedStyleDeclaration::create(layoutObject.node()), |