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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.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/animatable/AnimatableValueKeyframe.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h
index bb3f5ea9506ae4a34be55e72effc1eb31a90c660..da23b9d81f0fe169caef966af78176b6c04718e3 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h
@@ -34,7 +34,7 @@ public:
public:
static PassRefPtr<PropertySpecificKeyframe> create(double offset, PassRefPtr<TimingFunction> easing, PassRefPtr<AnimatableValue> value, EffectModel::CompositeOperation composite)
{
- return adoptRef(new PropertySpecificKeyframe(offset, easing, value, composite));
+ return adoptRef(new PropertySpecificKeyframe(offset, std::move(easing), std::move(value), composite));
}
AnimatableValue* value() const { return m_value.get(); }
@@ -45,7 +45,7 @@ public:
private:
PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, PassRefPtr<AnimatableValue> value, EffectModel::CompositeOperation composite)
- : Keyframe::PropertySpecificKeyframe(offset, easing, composite)
+ : Keyframe::PropertySpecificKeyframe(offset, std::move(easing), composite)
, m_value(value)
{ }

Powered by Google App Engine
This is Rietveld 408576698