Index: third_party/WebKit/Source/platform/geometry/FloatPolygon.h |
diff --git a/third_party/WebKit/Source/platform/geometry/FloatPolygon.h b/third_party/WebKit/Source/platform/geometry/FloatPolygon.h |
index 0799fa6673aa03b338243e5916b422984d84db41..26e891b5e18f9e8b3f7729347cf328058004968a 100644 |
--- a/third_party/WebKit/Source/platform/geometry/FloatPolygon.h |
+++ b/third_party/WebKit/Source/platform/geometry/FloatPolygon.h |
@@ -35,9 +35,8 @@ |
#include "platform/geometry/FloatRect.h" |
#include "platform/graphics/GraphicsTypes.h" |
#include "wtf/Allocator.h" |
-#include "wtf/OwnPtr.h" |
-#include "wtf/PassOwnPtr.h" |
#include "wtf/Vector.h" |
+#include <memory> |
namespace blink { |
@@ -52,7 +51,7 @@ class PLATFORM_EXPORT FloatPolygon { |
USING_FAST_MALLOC(FloatPolygon); |
WTF_MAKE_NONCOPYABLE(FloatPolygon); |
public: |
- FloatPolygon(PassOwnPtr<Vector<FloatPoint>> vertices, WindRule fillRule); |
+ FloatPolygon(std::unique_ptr<Vector<FloatPoint>> vertices, WindRule fillRule); |
const FloatPoint& vertexAt(unsigned index) const { return (*m_vertices)[index]; } |
unsigned numberOfVertices() const { return m_vertices->size(); } |
@@ -74,7 +73,7 @@ private: |
bool containsNonZero(const FloatPoint&) const; |
bool containsEvenOdd(const FloatPoint&) const; |
- OwnPtr<Vector<FloatPoint>> m_vertices; |
+ std::unique_ptr<Vector<FloatPoint>> m_vertices; |
WindRule m_fillRule; |
FloatRect m_boundingBox; |
bool m_empty; |