| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/animation/animatable/AnimatableValueKeyframe.h" | 6 #include "core/animation/animatable/AnimatableValueKeyframe.h" |
| 7 | 7 |
| 8 #include "core/animation/LegacyStyleInterpolation.h" | 8 #include "core/animation/LegacyStyleInterpolation.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 return adoptRefWillBeNoop(new AnimatableValueKeyframe(*this)); | 31 return adoptRefWillBeNoop(new AnimatableValueKeyframe(*this)); |
| 32 } | 32 } |
| 33 | 33 |
| 34 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyfra
me::createPropertySpecificKeyframe(CSSPropertyID property) const | 34 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyfra
me::createPropertySpecificKeyframe(CSSPropertyID property) const |
| 35 { | 35 { |
| 36 return adoptPtrWillBeNoop(new PropertySpecificKeyframe(offset(), easing(), p
ropertyValue(property), composite())); | 36 return adoptPtrWillBeNoop(new PropertySpecificKeyframe(offset(), easing(), p
ropertyValue(property), composite())); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void AnimatableValueKeyframe::trace(Visitor* visitor) | 39 void AnimatableValueKeyframe::trace(Visitor* visitor) |
| 40 { | 40 { |
| 41 #if ENABLE(OILPAN) | |
| 42 visitor->trace(m_propertyValues); | 41 visitor->trace(m_propertyValues); |
| 43 #endif | |
| 44 Keyframe::trace(visitor); | 42 Keyframe::trace(visitor); |
| 45 } | 43 } |
| 46 | 44 |
| 47 AnimatableValueKeyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(doub
le offset, PassRefPtr<TimingFunction> easing, const AnimatableValue* value, Anim
ationEffect::CompositeOperation op) | 45 AnimatableValueKeyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(doub
le offset, PassRefPtr<TimingFunction> easing, const AnimatableValue* value, Anim
ationEffect::CompositeOperation op) |
| 48 : Keyframe::PropertySpecificKeyframe(offset, easing, op) | 46 : Keyframe::PropertySpecificKeyframe(offset, easing, op) |
| 49 , m_value(const_cast<AnimatableValue*>(value)) | 47 , m_value(const_cast<AnimatableValue*>(value)) |
| 50 { } | 48 { } |
| 51 | 49 |
| 52 AnimatableValueKeyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(doub
le offset, PassRefPtr<TimingFunction> easing, PassRefPtrWillBeRawPtr<AnimatableV
alue> value) | 50 AnimatableValueKeyframe::PropertySpecificKeyframe::PropertySpecificKeyframe(doub
le offset, PassRefPtr<TimingFunction> easing, PassRefPtrWillBeRawPtr<AnimatableV
alue> value) |
| 53 : Keyframe::PropertySpecificKeyframe(offset, easing, AnimationEffect::Compos
iteReplace) | 51 : Keyframe::PropertySpecificKeyframe(offset, easing, AnimationEffect::Compos
iteReplace) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 return adoptPtrWillBeNoop(new AnimatableValueKeyframe::PropertySpecificKeyfr
ame(offset, easing, AnimatableValue::neutralValue(), AnimationEffect::CompositeA
dd)); | 71 return adoptPtrWillBeNoop(new AnimatableValueKeyframe::PropertySpecificKeyfr
ame(offset, easing, AnimatableValue::neutralValue(), AnimationEffect::CompositeA
dd)); |
| 74 } | 72 } |
| 75 | 73 |
| 76 void AnimatableValueKeyframe::PropertySpecificKeyframe::trace(Visitor* visitor) | 74 void AnimatableValueKeyframe::PropertySpecificKeyframe::trace(Visitor* visitor) |
| 77 { | 75 { |
| 78 visitor->trace(m_value); | 76 visitor->trace(m_value); |
| 79 Keyframe::PropertySpecificKeyframe::trace(visitor); | 77 Keyframe::PropertySpecificKeyframe::trace(visitor); |
| 80 } | 78 } |
| 81 | 79 |
| 82 } | 80 } |
| OLD | NEW |