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

Unified Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; merge. Created 4 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: 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 dc4bc2f35b06fb31dea2a4c5a4b623bfec4c0207..99a334e22fc23fc2ee05c7a6e7fdbea162cae5d0 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
@@ -14,6 +14,7 @@
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/PaintGeneratedImage.h"
#include "platform/graphics/RecordingImageBufferSurface.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -50,7 +51,7 @@ PassRefPtr<Image> CSSPaintDefinition::paint(const IntSize& size)
return nullptr;
PaintRenderingContext2D* renderingContext = PaintRenderingContext2D::create(
- ImageBuffer::create(adoptPtr(new RecordingImageBufferSurface(size))));
+ ImageBuffer::create(wrapUnique(new RecordingImageBufferSurface(size))));
Geometry* geometry = Geometry::create(size);
v8::Local<v8::Value> argv[] = {

Powered by Google App Engine
This is Rietveld 408576698