| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SVGInterpolation_h | 5 #ifndef SVGInterpolation_h |
| 6 #define SVGInterpolation_h | 6 #define SVGInterpolation_h |
| 7 | 7 |
| 8 #include "core/animation/Interpolation.h" | 8 #include "core/animation/Interpolation.h" |
| 9 #include "core/animation/PropertyHandle.h" | 9 #include "core/animation/PropertyHandle.h" |
| 10 #include "core/svg/properties/SVGAnimatedProperty.h" | 10 #include "core/svg/properties/SVGAnimatedProperty.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 PropertyHandle property() const final | 22 PropertyHandle property() const final |
| 23 { | 23 { |
| 24 return PropertyHandle(attributeName()); | 24 return PropertyHandle(attributeName()); |
| 25 } | 25 } |
| 26 | 26 |
| 27 void apply(SVGElement&) const; | 27 void apply(SVGElement&) const; |
| 28 | 28 |
| 29 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement
&) const = 0; | 29 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement
&) const = 0; |
| 30 | 30 |
| 31 DEFINE_INLINE_VIRTUAL_TRACE() | |
| 32 { | |
| 33 visitor->trace(m_attribute); | |
| 34 Interpolation::trace(visitor); | |
| 35 } | |
| 36 | |
| 37 protected: | 31 protected: |
| 38 SVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtr
WillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyB
ase> attribute) | 32 SVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpolabl
eValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) |
| 39 : Interpolation(start, end) | 33 : Interpolation(start, end) |
| 40 , m_attribute(attribute) | 34 , m_attribute(attribute) |
| 41 { | 35 { |
| 42 } | 36 } |
| 43 | 37 |
| 44 RefPtrWillBeMember<SVGAnimatedPropertyBase> m_attribute; | 38 RefPtrWillBePersistent<SVGAnimatedPropertyBase> m_attribute; |
| 45 }; | 39 }; |
| 46 | 40 |
| 47 DEFINE_TYPE_CASTS(SVGInterpolation, Interpolation, value, value->isSVGInterpolat
ion(), value.isSVGInterpolation()); | 41 DEFINE_TYPE_CASTS(SVGInterpolation, Interpolation, value, value->isSVGInterpolat
ion(), value.isSVGInterpolation()); |
| 48 | 42 |
| 49 } | 43 } |
| 50 | 44 |
| 51 #endif // SVGInterpolation_h | 45 #endif // SVGInterpolation_h |
| OLD | NEW |