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 147919ac256157748e8a6a41d1632c3a0b1fcca1..397bc12ccdf14bf38ecadab32d8ed68f536a4e4c 100644 |
--- a/third_party/WebKit/Source/core/style/StylePath.cpp |
+++ b/third_party/WebKit/Source/core/style/StylePath.cpp |
@@ -8,12 +8,10 @@ |
#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(std::unique_ptr<SVGPathByteStream> pathByteStream) |
+StylePath::StylePath(PassOwnPtr<SVGPathByteStream> pathByteStream) |
: m_byteStream(std::move(pathByteStream)) |
, m_pathLength(std::numeric_limits<float>::quiet_NaN()) |
{ |
@@ -24,7 +22,7 @@ StylePath::~StylePath() |
{ |
} |
-PassRefPtr<StylePath> StylePath::create(std::unique_ptr<SVGPathByteStream> pathByteStream) |
+PassRefPtr<StylePath> StylePath::create(PassOwnPtr<SVGPathByteStream> pathByteStream) |
{ |
return adoptRef(new StylePath(std::move(pathByteStream))); |
} |
@@ -38,7 +36,7 @@ StylePath* StylePath::emptyPath() |
const Path& StylePath::path() const |
{ |
if (!m_path) { |
- m_path = wrapUnique(new Path); |
+ m_path = adoptPtr(new Path); |
buildPathFromByteStream(*m_byteStream, *m_path); |
} |
return *m_path; |