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/CustomCompositorAnimations.cpp

Issue 2286233002: Replaced PassRefPtr copies with moves in Source/core/animation. (Closed)
Patch Set: Created 4 years, 4 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/CustomCompositorAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.cpp b/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.cpp
index 13f7f2e4c8957312feba343e79f59c66b9f1f1b5..04fa244c8ab8b5dc67ad1e8931fa215a02122cf2 100644
--- a/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.cpp
@@ -59,10 +59,10 @@ static KeyframeEffect* updateInfiniteKeyframeEffect(const KeyframeEffect& keyfra
static Animation* createOrUpdateAnimation(Animation* animation, Element& element, CSSPropertyID propertyId, PassRefPtr<AnimatableValue> newValue)
{
if (!animation) {
- KeyframeEffect* keyframeEffect = createInfiniteKeyFrameEffect(element, propertyId, newValue);
+ KeyframeEffect* keyframeEffect = createInfiniteKeyFrameEffect(element, propertyId, std::move(newValue));
return element.document().timeline().play(keyframeEffect);
}
- KeyframeEffect* keyframeEffect = updateInfiniteKeyframeEffect(*toKeyframeEffect(animation->effect()), propertyId, newValue);
+ KeyframeEffect* keyframeEffect = updateInfiniteKeyframeEffect(*toKeyframeEffect(animation->effect()), propertyId, std::move(newValue));
animation->setEffect(keyframeEffect);
return animation;
}

Powered by Google App Engine
This is Rietveld 408576698