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

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

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