| 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 Keyframe_h | 5 #ifndef Keyframe_h |
| 6 #define Keyframe_h | 6 #define Keyframe_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/animation/AnimationEffectReadOnly.h" | 9 #include "core/animation/AnimationEffectReadOnly.h" |
| 10 #include "core/animation/EffectModel.h" | 10 #include "core/animation/EffectModel.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 const PropertyHandle&) const = 0; | 117 const PropertyHandle&) const = 0; |
| 118 | 118 |
| 119 protected: | 119 protected: |
| 120 Keyframe() | 120 Keyframe() |
| 121 : m_offset(nullValue()), | 121 : m_offset(nullValue()), |
| 122 m_composite(EffectModel::CompositeReplace), | 122 m_composite(EffectModel::CompositeReplace), |
| 123 m_easing(LinearTimingFunction::shared()) {} | 123 m_easing(LinearTimingFunction::shared()) {} |
| 124 Keyframe(double offset, | 124 Keyframe(double offset, |
| 125 EffectModel::CompositeOperation composite, | 125 EffectModel::CompositeOperation composite, |
| 126 PassRefPtr<TimingFunction> easing) | 126 PassRefPtr<TimingFunction> easing) |
| 127 : m_offset(offset), m_composite(composite), m_easing(easing) {} | 127 : m_offset(offset), m_composite(composite), m_easing(std::move(easing)) {} |
| 128 | 128 |
| 129 double m_offset; | 129 double m_offset; |
| 130 EffectModel::CompositeOperation m_composite; | 130 EffectModel::CompositeOperation m_composite; |
| 131 RefPtr<TimingFunction> m_easing; | 131 RefPtr<TimingFunction> m_easing; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 using PropertySpecificKeyframe = Keyframe::PropertySpecificKeyframe; | 134 using PropertySpecificKeyframe = Keyframe::PropertySpecificKeyframe; |
| 135 | 135 |
| 136 } // namespace blink | 136 } // namespace blink |
| 137 | 137 |
| 138 #endif // Keyframe_h | 138 #endif // Keyframe_h |
| OLD | NEW |