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

Unified Diff: third_party/WebKit/Source/core/animation/InterpolationEffect.h

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/InterpolationEffect.h
diff --git a/third_party/WebKit/Source/core/animation/InterpolationEffect.h b/third_party/WebKit/Source/core/animation/InterpolationEffect.h
index 43f35500e1a56063d4c079203f5a51debb72611f..297f197c7d0e9e3c524b16cb620d03b8a780da6d 100644
--- a/third_party/WebKit/Source/core/animation/InterpolationEffect.h
+++ b/third_party/WebKit/Source/core/animation/InterpolationEffect.h
@@ -35,7 +35,7 @@ public:
void addInterpolation(PassRefPtr<Interpolation> interpolation, PassRefPtr<TimingFunction> easing, double start, double end, double applyFrom, double applyTo)
{
- m_interpolations.append(InterpolationRecord(interpolation, easing, start, end, applyFrom, applyTo));
+ m_interpolations.append(InterpolationRecord(std::move(interpolation), std::move(easing), start, end, applyFrom, applyTo));
}
void addInterpolationsFromKeyframes(PropertyHandle, const Keyframe::PropertySpecificKeyframe& keyframeA, const Keyframe::PropertySpecificKeyframe& keyframeB, double applyFrom, double applyTo);

Powered by Google App Engine
This is Rietveld 408576698