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

Unified Diff: third_party/WebKit/Source/core/layout/ClipPathOperation.h

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/layout/ClipPathOperation.h
diff --git a/third_party/WebKit/Source/core/layout/ClipPathOperation.h b/third_party/WebKit/Source/core/layout/ClipPathOperation.h
index 7258316537821015816a9dce3065169d712e1873..6edf717e4df4ab6b45f187e42ce0e8d5c53f1ad9 100644
--- a/third_party/WebKit/Source/core/layout/ClipPathOperation.h
+++ b/third_party/WebKit/Source/core/layout/ClipPathOperation.h
@@ -32,10 +32,10 @@
#include "core/style/BasicShapes.h"
#include "platform/graphics/Path.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace blink {
@@ -105,7 +105,7 @@ public:
{
ASSERT(m_shape);
m_path.reset();
- m_path = adoptPtr(new Path);
+ m_path = wrapUnique(new Path);
m_shape->path(*m_path, boundingRect);
m_path->setWindRule(m_shape->getWindRule());
return *m_path;
@@ -121,7 +121,7 @@ private:
}
RefPtr<BasicShape> m_shape;
- OwnPtr<Path> m_path;
+ std::unique_ptr<Path> m_path;
};
DEFINE_TYPE_CASTS(ShapeClipPathOperation, ClipPathOperation, op, op->type() == ClipPathOperation::SHAPE, op.type() == ClipPathOperation::SHAPE);

Powered by Google App Engine
This is Rietveld 408576698