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

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

Issue 1977763002: Remove OwnPtr::release() calls in core/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/CSSScaleInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
index 69b9128cc06cc0fee51f60d9b7d74c31acdf9ffc..40b9819fd34b77c27a0a67cc49a3d1fe582a5c8e 100644
--- a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
@@ -42,7 +42,7 @@ struct Scale {
OwnPtr<InterpolableList> result = InterpolableList::create(3);
for (size_t i = 0; i < 3; i++)
result->set(i, InterpolableNumber::create(array[i]));
- return result.release();
+ return static_pointer_cast<InterpolableValue>(std::move(result));
}
bool operator==(const Scale& other) const
@@ -169,8 +169,8 @@ InterpolationValue CSSScaleInterpolationType::maybeConvertSingle(const PropertyS
PairwiseInterpolationValue CSSScaleInterpolationType::maybeMergeSingles(InterpolationValue&& start, InterpolationValue&& end) const
{
return PairwiseInterpolationValue(
- start.interpolableValue.release(),
- end.interpolableValue.release(),
+ std::move(start.interpolableValue),
+ std::move(end.interpolableValue),
CSSScaleNonInterpolableValue::merge(
toCSSScaleNonInterpolableValue(*start.nonInterpolableValue),
toCSSScaleNonInterpolableValue(*end.nonInterpolableValue)));

Powered by Google App Engine
This is Rietveld 408576698