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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 PassRefPtr<Interpolation> | 47 PassRefPtr<Interpolation> |
48 AnimatableValueKeyframe::PropertySpecificKeyframe::createInterpolation( | 48 AnimatableValueKeyframe::PropertySpecificKeyframe::createInterpolation( |
49 const PropertyHandle& property, | 49 const PropertyHandle& property, |
50 const Keyframe::PropertySpecificKeyframe& end) const { | 50 const Keyframe::PropertySpecificKeyframe& end) const { |
51 return LegacyStyleInterpolation::create( | 51 return LegacyStyleInterpolation::create( |
52 value(), toAnimatableValuePropertySpecificKeyframe(end).value(), | 52 value(), toAnimatableValuePropertySpecificKeyframe(end).value(), |
53 property.cssProperty()); | 53 property.cssProperty()); |
54 } | 54 } |
55 | 55 |
56 PassRefPtr<Keyframe::PropertySpecificKeyframe> | |
57 AnimatableValueKeyframe::PropertySpecificKeyframe::neutralKeyframe( | |
58 double offset, | |
59 PassRefPtr<TimingFunction> easing) const { | |
60 return create(offset, std::move(easing), AnimatableValue::neutralValue(), | |
61 EffectModel::CompositeAdd); | |
62 } | |
63 | |
64 } // namespace blink | 56 } // namespace blink |
OLD | NEW |