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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.cpp

Issue 2286233002: Replaced PassRefPtr copies with moves in Source/core/animation. (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/animatable/AnimatableValueKeyframe.h" 5 #include "core/animation/animatable/AnimatableValueKeyframe.h"
6 6
7 #include "core/animation/LegacyStyleInterpolation.h" 7 #include "core/animation/LegacyStyleInterpolation.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 29 matching lines...) Expand all
40 return create(offset, m_easing, m_value, m_composite); 40 return create(offset, m_easing, m_value, m_composite);
41 } 41 }
42 42
43 PassRefPtr<Interpolation> AnimatableValueKeyframe::PropertySpecificKeyframe::cre ateInterpolation(PropertyHandle property, const Keyframe::PropertySpecificKeyfra me& end) const 43 PassRefPtr<Interpolation> AnimatableValueKeyframe::PropertySpecificKeyframe::cre ateInterpolation(PropertyHandle property, const Keyframe::PropertySpecificKeyfra me& end) const
44 { 44 {
45 return LegacyStyleInterpolation::create(value(), toAnimatableValuePropertySp ecificKeyframe(end).value(), property.cssProperty()); 45 return LegacyStyleInterpolation::create(value(), toAnimatableValuePropertySp ecificKeyframe(end).value(), property.cssProperty());
46 } 46 }
47 47
48 PassRefPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyframe::Property SpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFunction> easi ng) const 48 PassRefPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyframe::Property SpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFunction> easi ng) const
49 { 49 {
50 return create(offset, easing, AnimatableValue::neutralValue(), EffectModel:: CompositeAdd); 50 return create(offset, std::move(easing), AnimatableValue::neutralValue(), Ef fectModel::CompositeAdd);
51 } 51 }
52 52
53 } // namespace blink 53 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698