Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Unified Diff: third_party/WebKit/Source/core/layout/shapes/PolygonShape.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/shapes/PolygonShape.h
diff --git a/third_party/WebKit/Source/core/layout/shapes/PolygonShape.h b/third_party/WebKit/Source/core/layout/shapes/PolygonShape.h
index f238812ab77ac9baee1c54a7583706c5376cea0c..62dd4a6469efa086db7f31d4e1f2c43e7d0e215e 100644
--- a/third_party/WebKit/Source/core/layout/shapes/PolygonShape.h
+++ b/third_party/WebKit/Source/core/layout/shapes/PolygonShape.h
@@ -33,7 +33,6 @@
#include "core/layout/shapes/Shape.h"
#include "core/layout/shapes/ShapeInterval.h"
#include "platform/geometry/FloatPolygon.h"
-#include <memory>
namespace blink {
@@ -62,7 +61,7 @@ private:
class PolygonShape final : public Shape {
WTF_MAKE_NONCOPYABLE(PolygonShape);
public:
- PolygonShape(std::unique_ptr<Vector<FloatPoint>> vertices, WindRule fillRule)
+ PolygonShape(PassOwnPtr<Vector<FloatPoint>> vertices, WindRule fillRule)
: Shape()
, m_polygon(std::move(vertices), fillRule)
{

Powered by Google App Engine
This is Rietveld 408576698