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 #ifndef AnimatableValueKeyframe_h | 5 #ifndef AnimatableValueKeyframe_h |
6 #define AnimatableValueKeyframe_h | 6 #define AnimatableValueKeyframe_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/Keyframe.h" | 9 #include "core/animation/Keyframe.h" |
10 #include "core/animation/animatable/AnimatableValue.h" | 10 #include "core/animation/animatable/AnimatableValue.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const Keyframe::PropertySpecificKeyframe& end) const final; | 57 const Keyframe::PropertySpecificKeyframe& end) const final; |
58 | 58 |
59 private: | 59 private: |
60 PropertySpecificKeyframe(double offset, | 60 PropertySpecificKeyframe(double offset, |
61 PassRefPtr<TimingFunction> easing, | 61 PassRefPtr<TimingFunction> easing, |
62 PassRefPtr<AnimatableValue> value, | 62 PassRefPtr<AnimatableValue> value, |
63 EffectModel::CompositeOperation composite) | 63 EffectModel::CompositeOperation composite) |
64 : Keyframe::PropertySpecificKeyframe(offset, | 64 : Keyframe::PropertySpecificKeyframe(offset, |
65 std::move(easing), | 65 std::move(easing), |
66 composite), | 66 composite), |
67 m_value(value) {} | 67 m_value(std::move(value)) {} |
68 | 68 |
69 PassRefPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset( | 69 PassRefPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset( |
70 double offset) const override; | 70 double offset) const override; |
71 bool isAnimatableValuePropertySpecificKeyframe() const override { | 71 bool isAnimatableValuePropertySpecificKeyframe() const override { |
72 return true; | 72 return true; |
73 } | 73 } |
74 | 74 |
75 RefPtr<AnimatableValue> m_value; | 75 RefPtr<AnimatableValue> m_value; |
76 }; | 76 }; |
77 | 77 |
(...skipping 22 matching lines...) Expand all Loading... |
100 value.isAnimatableValueKeyframe()); | 100 value.isAnimatableValueKeyframe()); |
101 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, | 101 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, |
102 Keyframe::PropertySpecificKeyframe, | 102 Keyframe::PropertySpecificKeyframe, |
103 value, | 103 value, |
104 value->isAnimatableValuePropertySpecificKeyframe(), | 104 value->isAnimatableValuePropertySpecificKeyframe(), |
105 value.isAnimatableValuePropertySpecificKeyframe()); | 105 value.isAnimatableValuePropertySpecificKeyframe()); |
106 | 106 |
107 } // namespace blink | 107 } // namespace blink |
108 | 108 |
109 #endif | 109 #endif |
OLD | NEW |