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

Unified Diff: third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp

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/animation/SVGPointListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp
index 534cd47a8a0a32feda95f6696f69311b1b1327b9..13934d09003575290c394c37600fcbf90657fc13 100644
--- a/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGPointListInterpolationType.cpp
@@ -8,6 +8,7 @@
#include "core/animation/StringKeyframe.h"
#include "core/animation/UnderlyingLengthChecker.h"
#include "core/svg/SVGPointList.h"
+#include <memory>
namespace blink {
@@ -19,7 +20,7 @@ InterpolationValue SVGPointListInterpolationType::maybeConvertNeutral(const Inte
if (underlyingLength == 0)
return nullptr;
- OwnPtr<InterpolableList> result = InterpolableList::create(underlyingLength);
+ std::unique_ptr<InterpolableList> result = InterpolableList::create(underlyingLength);
for (size_t i = 0; i < underlyingLength; i++)
result->set(i, InterpolableNumber::create(0));
return InterpolationValue(std::move(result));
@@ -31,7 +32,7 @@ InterpolationValue SVGPointListInterpolationType::maybeConvertSVGValue(const SVG
return nullptr;
const SVGPointList& pointList = toSVGPointList(svgValue);
- OwnPtr<InterpolableList> result = InterpolableList::create(pointList.length() * 2);
+ std::unique_ptr<InterpolableList> result = InterpolableList::create(pointList.length() * 2);
for (size_t i = 0; i < pointList.length(); i++) {
const SVGPoint& point = *pointList.at(i);
result->set(2 * i, InterpolableNumber::create(point.x()));

Powered by Google App Engine
This is Rietveld 408576698