| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |