| 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/StringKeyframe.h" | 5 #include "core/animation/StringKeyframe.h" |
| 6 | 6 |
| 7 #include "core/StylePropertyShorthand.h" | 7 #include "core/StylePropertyShorthand.h" |
| 8 #include "core/animation/css/CSSAnimations.h" | 8 #include "core/animation/css/CSSAnimations.h" |
| 9 #include "core/css/CSSCustomPropertyDeclaration.h" | 9 #include "core/css/CSSCustomPropertyDeclaration.h" |
| 10 #include "core/css/CSSPropertyMetadata.h" | 10 #include "core/css/CSSPropertyMetadata.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 PassRefPtr<TimingFunction> easing) const { | 136 PassRefPtr<TimingFunction> easing) const { |
| 137 return Create(offset, std::move(easing), nullptr, EffectModel::kCompositeAdd); | 137 return Create(offset, std::move(easing), nullptr, EffectModel::kCompositeAdd); |
| 138 } | 138 } |
| 139 | 139 |
| 140 PassRefPtr<Keyframe::PropertySpecificKeyframe> | 140 PassRefPtr<Keyframe::PropertySpecificKeyframe> |
| 141 StringKeyframe::CSSPropertySpecificKeyframe::CloneWithOffset( | 141 StringKeyframe::CSSPropertySpecificKeyframe::CloneWithOffset( |
| 142 double offset) const { | 142 double offset) const { |
| 143 RefPtr<CSSPropertySpecificKeyframe> clone = | 143 RefPtr<CSSPropertySpecificKeyframe> clone = |
| 144 Create(offset, easing_, value_.Get(), composite_); | 144 Create(offset, easing_, value_.Get(), composite_); |
| 145 clone->animatable_value_cache_ = animatable_value_cache_; | 145 clone->animatable_value_cache_ = animatable_value_cache_; |
| 146 return clone.Release(); | 146 return clone; |
| 147 } | 147 } |
| 148 | 148 |
| 149 PassRefPtr<Keyframe::PropertySpecificKeyframe> | 149 PassRefPtr<Keyframe::PropertySpecificKeyframe> |
| 150 SVGPropertySpecificKeyframe::CloneWithOffset(double offset) const { | 150 SVGPropertySpecificKeyframe::CloneWithOffset(double offset) const { |
| 151 return Create(offset, easing_, value_, composite_); | 151 return Create(offset, easing_, value_, composite_); |
| 152 } | 152 } |
| 153 | 153 |
| 154 PassRefPtr<Keyframe::PropertySpecificKeyframe> | 154 PassRefPtr<Keyframe::PropertySpecificKeyframe> |
| 155 SVGPropertySpecificKeyframe::NeutralKeyframe( | 155 SVGPropertySpecificKeyframe::NeutralKeyframe( |
| 156 double offset, | 156 double offset, |
| 157 PassRefPtr<TimingFunction> easing) const { | 157 PassRefPtr<TimingFunction> easing) const { |
| 158 return Create(offset, std::move(easing), String(), | 158 return Create(offset, std::move(easing), String(), |
| 159 EffectModel::kCompositeAdd); | 159 EffectModel::kCompositeAdd); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |