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

Unified Diff: third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.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/SVGLengthListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
index e70381b628ca4af6e1f556a481295996b2cddb26..8685a8d9aef70f852faed223fb13b84ab091d650 100644
--- a/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
@@ -8,6 +8,7 @@
#include "core/animation/SVGLengthInterpolationType.h"
#include "core/animation/UnderlyingLengthChecker.h"
#include "core/svg/SVGLengthList.h"
+#include <memory>
namespace blink {
@@ -19,7 +20,7 @@ InterpolationValue SVGLengthListInterpolationType::maybeConvertNeutral(const Int
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, SVGLengthInterpolationType::neutralInterpolableValue());
return InterpolationValue(std::move(result));
@@ -31,7 +32,7 @@ InterpolationValue SVGLengthListInterpolationType::maybeConvertSVGValue(const SV
return nullptr;
const SVGLengthList& lengthList = toSVGLengthList(svgValue);
- OwnPtr<InterpolableList> result = InterpolableList::create(lengthList.length());
+ std::unique_ptr<InterpolableList> result = InterpolableList::create(lengthList.length());
for (size_t i = 0; i < lengthList.length(); i++) {
InterpolationValue component = SVGLengthInterpolationType::convertSVGLength(*lengthList.at(i));
result->set(i, std::move(component.interpolableValue));

Powered by Google App Engine
This is Rietveld 408576698