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

Unified Diff: third_party/WebKit/Source/core/style/StylePath.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/style/StylePath.cpp
diff --git a/third_party/WebKit/Source/core/style/StylePath.cpp b/third_party/WebKit/Source/core/style/StylePath.cpp
index 397bc12ccdf14bf38ecadab32d8ed68f536a4e4c..147919ac256157748e8a6a41d1632c3a0b1fcca1 100644
--- a/third_party/WebKit/Source/core/style/StylePath.cpp
+++ b/third_party/WebKit/Source/core/style/StylePath.cpp
@@ -8,10 +8,12 @@
#include "core/svg/SVGPathByteStream.h"
#include "core/svg/SVGPathUtilities.h"
#include "platform/graphics/Path.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
-StylePath::StylePath(PassOwnPtr<SVGPathByteStream> pathByteStream)
+StylePath::StylePath(std::unique_ptr<SVGPathByteStream> pathByteStream)
: m_byteStream(std::move(pathByteStream))
, m_pathLength(std::numeric_limits<float>::quiet_NaN())
{
@@ -22,7 +24,7 @@ StylePath::~StylePath()
{
}
-PassRefPtr<StylePath> StylePath::create(PassOwnPtr<SVGPathByteStream> pathByteStream)
+PassRefPtr<StylePath> StylePath::create(std::unique_ptr<SVGPathByteStream> pathByteStream)
{
return adoptRef(new StylePath(std::move(pathByteStream)));
}
@@ -36,7 +38,7 @@ StylePath* StylePath::emptyPath()
const Path& StylePath::path() const
{
if (!m_path) {
- m_path = adoptPtr(new Path);
+ m_path = wrapUnique(new Path);
buildPathFromByteStream(*m_byteStream, *m_path);
}
return *m_path;
« no previous file with comments | « third_party/WebKit/Source/core/style/StylePath.h ('k') | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698