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

Unified Diff: third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/core/paint/SVGFilterPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp b/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
index a98c0c68b53dd86631c88525330b4607847a3406..0bf57810d3397fef157f301a1f9d8119b3f503a9 100644
--- a/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp
@@ -9,6 +9,7 @@
#include "core/paint/LayoutObjectDrawingRecorder.h"
#include "platform/graphics/filters/SkiaImageFilterBuilder.h"
#include "platform/graphics/filters/SourceGraphic.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -18,7 +19,7 @@ GraphicsContext* SVGFilterRecordingContext::beginContent(FilterData* filterData)
// Create a new context so the contents of the filter can be drawn and cached.
m_paintController = PaintController::create();
- m_context = adoptPtr(new GraphicsContext(*m_paintController));
+ m_context = wrapUnique(new GraphicsContext(*m_paintController));
filterData->m_state = FilterData::RecordingContent;
return m_context.get();

Powered by Google App Engine
This is Rietveld 408576698