Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h |
index 897583b3cf04cd21ea96d19a29426448f987ca9d..1fd09f0713ebe455cbb408ee2e753981c0fce746 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h |
@@ -22,8 +22,6 @@ |
#define LayoutSVGTextPath_h |
#include "core/layout/svg/LayoutSVGInline.h" |
-#include "wtf/PtrUtil.h" |
-#include <memory> |
namespace blink { |
@@ -33,9 +31,9 @@ namespace blink { |
class PathPositionMapper { |
USING_FAST_MALLOC(PathPositionMapper); |
public: |
- static std::unique_ptr<PathPositionMapper> create(const Path& path) |
+ static PassOwnPtr<PathPositionMapper> create(const Path& path) |
{ |
- return wrapUnique(new PathPositionMapper(path)); |
+ return adoptPtr(new PathPositionMapper(path)); |
} |
enum PositionType { |
@@ -57,7 +55,7 @@ class LayoutSVGTextPath final : public LayoutSVGInline { |
public: |
explicit LayoutSVGTextPath(Element*); |
- std::unique_ptr<PathPositionMapper> layoutPath() const; |
+ PassOwnPtr<PathPositionMapper> layoutPath() const; |
float calculateStartOffset(float) const; |
bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; |