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

Unified Diff: third_party/WebKit/Source/core/animation/SVGNumberOptionalNumberInterpolationType.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/SVGNumberOptionalNumberInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGNumberOptionalNumberInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGNumberOptionalNumberInterpolationType.cpp
index b4fcff9172767b7b6218f2720a05de7b8866bb1b..2413ec3d72192f3022323b872e6c22be36a6b10c 100644
--- a/third_party/WebKit/Source/core/animation/SVGNumberOptionalNumberInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGNumberOptionalNumberInterpolationType.cpp
@@ -6,12 +6,13 @@
#include "core/animation/InterpolationEnvironment.h"
#include "core/svg/SVGNumberOptionalNumber.h"
+#include <memory>
namespace blink {
InterpolationValue SVGNumberOptionalNumberInterpolationType::maybeConvertNeutral(const InterpolationValue&, ConversionCheckers&) const
{
- OwnPtr<InterpolableList> result = InterpolableList::create(2);
+ std::unique_ptr<InterpolableList> result = InterpolableList::create(2);
result->set(0, InterpolableNumber::create(0));
result->set(1, InterpolableNumber::create(0));
return InterpolationValue(std::move(result));
@@ -23,7 +24,7 @@ InterpolationValue SVGNumberOptionalNumberInterpolationType::maybeConvertSVGValu
return nullptr;
const SVGNumberOptionalNumber& numberOptionalNumber = toSVGNumberOptionalNumber(svgValue);
- OwnPtr<InterpolableList> result = InterpolableList::create(2);
+ std::unique_ptr<InterpolableList> result = InterpolableList::create(2);
result->set(0, InterpolableNumber::create(numberOptionalNumber.firstNumber()->value()));
result->set(1, InterpolableNumber::create(numberOptionalNumber.secondNumber()->value()));
return InterpolationValue(std::move(result));

Powered by Google App Engine
This is Rietveld 408576698