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

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

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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/InvalidatableInterpolation.cpp
diff --git a/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.cpp b/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.cpp
index 96c6330922622547957f61aed3604eec5624cb34..a0f9ed975f57b310d2d8bcc7f2d74408bec67bfc 100644
--- a/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.cpp
+++ b/third_party/WebKit/Source/core/animation/InvalidatableInterpolation.cpp
@@ -46,7 +46,7 @@ InvalidatableInterpolation::maybeConvertPairwise(
return PairwisePrimitiveInterpolation::create(
*interpolationType, std::move(result.startInterpolableValue),
std::move(result.endInterpolableValue),
- result.nonInterpolableValue.release());
+ std::move(result.nonInterpolableValue));
}
}
return nullptr;
@@ -68,10 +68,11 @@ InvalidatableInterpolation::convertSingleKeyframe(
keyframe, environment, underlyingValueOwner.value(),
conversionCheckers);
addConversionCheckers(*interpolationType, conversionCheckers);
- if (result)
+ if (result) {
return TypedInterpolationValue::create(
*interpolationType, std::move(result.interpolableValue),
- result.nonInterpolableValue.release());
+ std::move(result.nonInterpolableValue));
+ }
}
DCHECK(keyframe.isNeutral());
return nullptr;
@@ -92,10 +93,11 @@ InvalidatableInterpolation::maybeConvertUnderlyingValue(
for (const auto& interpolationType : *m_interpolationTypes) {
InterpolationValue result =
interpolationType->maybeConvertUnderlyingValue(environment);
- if (result)
+ if (result) {
return TypedInterpolationValue::create(
*interpolationType, std::move(result.interpolableValue),
- result.nonInterpolableValue.release());
+ std::move(result.nonInterpolableValue));
+ }
}
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698