| 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 LengthSVGInterpolation_h | 5 #ifndef LengthSVGInterpolation_h |
| 6 #define LengthSVGInterpolation_h | 6 #define LengthSVGInterpolation_h |
| 7 | 7 |
| 8 #include "core/animation/SVGInterpolation.h" | 8 #include "core/animation/SVGInterpolation.h" |
| 9 #include "core/svg/SVGLength.h" | 9 #include "core/svg/SVGLength.h" |
| 10 #include "core/svg/SVGLengthList.h" | 10 #include "core/svg/SVGLengthList.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 static bool canCreateFrom(SVGLength*, SVGLength*) | 23 static bool canCreateFrom(SVGLength*, SVGLength*) |
| 24 { | 24 { |
| 25 return true; | 25 return true; |
| 26 } | 26 } |
| 27 | 27 |
| 28 static PassRefPtrWillBeRawPtr<SVGLengthList> createList(const SVGAnimatedPro
pertyBase&); | 28 static PassRefPtrWillBeRawPtr<SVGLengthList> createList(const SVGAnimatedPro
pertyBase&); |
| 29 | 29 |
| 30 static PassRefPtrWillBeRawPtr<LengthSVGInterpolation> create(SVGPropertyBase
* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> a
ttribute); | 30 static PassRefPtrWillBeRawPtr<LengthSVGInterpolation> create(SVGPropertyBase
* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> a
ttribute); |
| 31 | 31 |
| 32 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGLeng
th*, const SVGAnimatedPropertyBase*, NonInterpolableType*); | 32 static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGLength*, const S
VGAnimatedPropertyBase*, NonInterpolableType*); |
| 33 | 33 |
| 34 static PassRefPtrWillBeRawPtr<SVGLength> fromInterpolableValue(const Interpo
lableValue&, const NonInterpolableType&, const SVGElement*); | 34 static PassRefPtrWillBeRawPtr<SVGLength> fromInterpolableValue(const Interpo
lableValue&, const NonInterpolableType&, const SVGElement*); |
| 35 | 35 |
| 36 DEFINE_INLINE_VIRTUAL_TRACE() | 36 DEFINE_INLINE_VIRTUAL_TRACE() |
| 37 { | 37 { |
| 38 SVGInterpolation::trace(visitor); | 38 SVGInterpolation::trace(visitor); |
| 39 } | 39 } |
| 40 | 40 |
| 41 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const
final; | 41 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const
final; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 LengthSVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, Pass
OwnPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPro
pertyBase> attribute, const NonInterpolableType& modeData) | 44 LengthSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Inter
polableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, co
nst NonInterpolableType& modeData) |
| 45 : SVGInterpolation(start, end, attribute) | 45 : SVGInterpolation(start, end, attribute) |
| 46 , m_modeData(modeData) | 46 , m_modeData(modeData) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| 50 const NonInterpolableType m_modeData; | 50 const NonInterpolableType m_modeData; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } | 53 } |
| 54 | 54 |
| 55 #endif // LengthSVGInterpolation_h | 55 #endif // LengthSVGInterpolation_h |
| OLD | NEW |