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

Unified Diff: third_party/WebKit/Source/core/animation/KeyframeEffectModel.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/KeyframeEffectModel.h
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffectModel.h b/third_party/WebKit/Source/core/animation/KeyframeEffectModel.h
index c7f1f8cb7f55fd105a4127d78ff63261cfb973a4..cf9fdfe6599d090632cb52c00862438d501e44ff 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffectModel.h
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectModel.h
@@ -160,12 +160,12 @@ public:
using KeyframeVector = Vector<RefPtr<Keyframe>>;
static KeyframeEffectModel<Keyframe>* create(const KeyframeVector& keyframes, PassRefPtr<TimingFunction> defaultKeyframeEasing = nullptr)
{
- return new KeyframeEffectModel(keyframes, defaultKeyframeEasing);
+ return new KeyframeEffectModel(keyframes, std::move(defaultKeyframeEasing));
}
private:
KeyframeEffectModel(const KeyframeVector& keyframes, PassRefPtr<TimingFunction> defaultKeyframeEasing)
- : KeyframeEffectModelBase(defaultKeyframeEasing)
+ : KeyframeEffectModelBase(std::move(defaultKeyframeEasing))
{
m_keyframes.appendVector(keyframes);
}

Powered by Google App Engine
This is Rietveld 408576698