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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimations.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/css/CSSAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
index c385ff9cbf0fe832febf1d27b99b011eebb95d03..86bd524a931a75e20d217a42386b46c0f2e2e4d4 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
@@ -113,7 +113,7 @@ static StringKeyframeEffectModel* createKeyframeEffectModel(
DCHECK(value.isCSSWideKeyword());
timingFunction = CSSTimingData::initialTimingFunction();
}
- keyframe->setEasing(timingFunction.release());
+ keyframe->setEasing(std::move(timingFunction));
} else if (!CSSAnimations::isAnimationAffectingProperty(property)) {
keyframe->setCSSPropertyValue(property,
properties.propertyAt(j).value());
@@ -715,7 +715,7 @@ void CSSAnimations::calculateTransitionUpdateForProperty(
AnimatableValueKeyframe::create();
startKeyframe->setPropertyValue(id, from.get());
startKeyframe->setOffset(startKeyframeOffset);
- startKeyframe->setEasing(timing.timingFunction.release());
+ startKeyframe->setEasing(std::move(timing.timingFunction));
timing.timingFunction = LinearTimingFunction::shared();
keyframes.push_back(startKeyframe);

Powered by Google App Engine
This is Rietveld 408576698