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

Unified Diff: third_party/WebKit/Source/core/style/StylePath.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/style/StylePath.h
diff --git a/third_party/WebKit/Source/core/style/StylePath.h b/third_party/WebKit/Source/core/style/StylePath.h
index 763caab29b35c2983987593a6beea33c8f890015..6fb672e12517106566d616c86987c0449879c4f0 100644
--- a/third_party/WebKit/Source/core/style/StylePath.h
+++ b/third_party/WebKit/Source/core/style/StylePath.h
@@ -6,10 +6,10 @@
#define StylePath_h
#include "platform/heap/Handle.h"
-#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
+#include <memory>
namespace blink {
@@ -19,7 +19,7 @@ class SVGPathByteStream;
class StylePath : public RefCounted<StylePath> {
public:
- static PassRefPtr<StylePath> create(PassOwnPtr<SVGPathByteStream>);
+ static PassRefPtr<StylePath> create(std::unique_ptr<SVGPathByteStream>);
~StylePath();
static StylePath* emptyPath();
@@ -35,10 +35,10 @@ public:
bool operator==(const StylePath&) const;
private:
- explicit StylePath(PassOwnPtr<SVGPathByteStream>);
+ explicit StylePath(std::unique_ptr<SVGPathByteStream>);
- OwnPtr<SVGPathByteStream> m_byteStream;
- mutable OwnPtr<Path> m_path;
+ std::unique_ptr<SVGPathByteStream> m_byteStream;
+ mutable std::unique_ptr<Path> m_path;
mutable float m_pathLength;
};
« no previous file with comments | « third_party/WebKit/Source/core/style/ShadowList.cpp ('k') | third_party/WebKit/Source/core/style/StylePath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698