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