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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/RasterShape.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/RasterShape.h
diff --git a/third_party/WebKit/Source/core/layout/shapes/RasterShape.h b/third_party/WebKit/Source/core/layout/shapes/RasterShape.h
index e43e9e8455e5987fa5ce20c5016b33b3e0bb7e3d..e9d262e3b5bd908e5fb9cb792a9c22d483e043af 100644
--- a/third_party/WebKit/Source/core/layout/shapes/RasterShape.h
+++ b/third_party/WebKit/Source/core/layout/shapes/RasterShape.h
@@ -35,7 +35,6 @@
#include "platform/geometry/FloatRect.h"
#include "wtf/Assertions.h"
#include "wtf/Vector.h"
-#include <memory>
namespace blink {
@@ -64,7 +63,7 @@ public:
return m_intervals[y + m_offset];
}
- std::unique_ptr<RasterShapeIntervals> computeShapeMarginIntervals(int shapeMargin) const;
+ PassOwnPtr<RasterShapeIntervals> computeShapeMarginIntervals(int shapeMargin) const;
void buildBoundsPath(Path&) const;
@@ -82,7 +81,7 @@ private:
class RasterShape final : public Shape {
WTF_MAKE_NONCOPYABLE(RasterShape);
public:
- RasterShape(std::unique_ptr<RasterShapeIntervals> intervals, const IntSize& marginRectSize)
+ RasterShape(PassOwnPtr<RasterShapeIntervals> intervals, const IntSize& marginRectSize)
: m_intervals(std::move(intervals))
, m_marginRectSize(marginRectSize)
{
@@ -102,8 +101,8 @@ public:
private:
const RasterShapeIntervals& marginIntervals() const;
- std::unique_ptr<RasterShapeIntervals> m_intervals;
- mutable std::unique_ptr<RasterShapeIntervals> m_marginIntervals;
+ OwnPtr<RasterShapeIntervals> m_intervals;
+ mutable OwnPtr<RasterShapeIntervals> m_marginIntervals;
IntSize m_marginRectSize;
};

Powered by Google App Engine
This is Rietveld 408576698