Index: third_party/WebKit/Source/core/layout/shapes/Shape.h |
diff --git a/third_party/WebKit/Source/core/layout/shapes/Shape.h b/third_party/WebKit/Source/core/layout/shapes/Shape.h |
index 59002f06abea862ee3a5d8b53d60a68bcc91043b..f6cff72d394f12c81e23c0346e58b935902b62e0 100644 |
--- a/third_party/WebKit/Source/core/layout/shapes/Shape.h |
+++ b/third_party/WebKit/Source/core/layout/shapes/Shape.h |
@@ -36,7 +36,7 @@ |
#include "platform/geometry/LayoutRect.h" |
#include "platform/graphics/Path.h" |
#include "platform/text/WritingMode.h" |
-#include "wtf/PassOwnPtr.h" |
+#include <memory> |
namespace blink { |
@@ -76,10 +76,10 @@ public: |
Path shape; |
Path marginShape; |
}; |
- static PassOwnPtr<Shape> createShape(const BasicShape*, const LayoutSize& logicalBoxSize, WritingMode, float margin); |
- static PassOwnPtr<Shape> createRasterShape(Image*, float threshold, const LayoutRect& imageRect, const LayoutRect& marginRect, WritingMode, float margin); |
- static PassOwnPtr<Shape> createEmptyRasterShape(WritingMode, float margin); |
- static PassOwnPtr<Shape> createLayoutBoxShape(const FloatRoundedRect&, WritingMode, float margin); |
+ static std::unique_ptr<Shape> createShape(const BasicShape*, const LayoutSize& logicalBoxSize, WritingMode, float margin); |
+ static std::unique_ptr<Shape> createRasterShape(Image*, float threshold, const LayoutRect& imageRect, const LayoutRect& marginRect, WritingMode, float margin); |
+ static std::unique_ptr<Shape> createEmptyRasterShape(WritingMode, float margin); |
+ static std::unique_ptr<Shape> createLayoutBoxShape(const FloatRoundedRect&, WritingMode, float margin); |
virtual ~Shape() { } |