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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/svg/LayoutSVGTextPath.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h
index 1fd09f0713ebe455cbb408ee2e753981c0fce746..897583b3cf04cd21ea96d19a29426448f987ca9d 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGTextPath.h
@@ -22,6 +22,8 @@
#define LayoutSVGTextPath_h
#include "core/layout/svg/LayoutSVGInline.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -31,9 +33,9 @@ namespace blink {
class PathPositionMapper {
USING_FAST_MALLOC(PathPositionMapper);
public:
- static PassOwnPtr<PathPositionMapper> create(const Path& path)
+ static std::unique_ptr<PathPositionMapper> create(const Path& path)
{
- return adoptPtr(new PathPositionMapper(path));
+ return wrapUnique(new PathPositionMapper(path));
}
enum PositionType {
@@ -55,7 +57,7 @@ class LayoutSVGTextPath final : public LayoutSVGInline {
public:
explicit LayoutSVGTextPath(Element*);
- PassOwnPtr<PathPositionMapper> layoutPath() const;
+ std::unique_ptr<PathPositionMapper> layoutPath() const;
float calculateStartOffset(float) const;
bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;

Powered by Google App Engine
This is Rietveld 408576698