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 RectSVGInterpolation_h | 5 #ifndef RectSVGInterpolation_h |
6 #define RectSVGInterpolation_h | 6 #define RectSVGInterpolation_h |
7 | 7 |
8 #include "core/animation/SVGInterpolation.h" | 8 #include "core/animation/SVGInterpolation.h" |
9 #include "core/svg/SVGRect.h" | 9 #include "core/svg/SVGRect.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 { | 23 { |
24 return fromInterpolableValue(*m_cachedValue); | 24 return fromInterpolableValue(*m_cachedValue); |
25 } | 25 } |
26 | 26 |
27 DEFINE_INLINE_VIRTUAL_TRACE() | 27 DEFINE_INLINE_VIRTUAL_TRACE() |
28 { | 28 { |
29 SVGInterpolation::trace(visitor); | 29 SVGInterpolation::trace(visitor); |
30 } | 30 } |
31 | 31 |
32 private: | 32 private: |
33 RectSVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOw
nPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPrope
rtyBase> attribute) | 33 RectSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpo
lableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) |
34 : SVGInterpolation(start, end, attribute) | 34 : SVGInterpolation(start, end, attribute) |
35 { | 35 { |
36 } | 36 } |
37 | 37 |
38 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGProp
ertyBase*); | 38 static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGPropertyBase*); |
39 | 39 |
40 static PassRefPtrWillBeRawPtr<SVGRect> fromInterpolableValue(const Interpola
bleValue&); | 40 static PassRefPtrWillBeRawPtr<SVGRect> fromInterpolableValue(const Interpola
bleValue&); |
41 }; | 41 }; |
42 | 42 |
43 } | 43 } |
44 | 44 |
45 #endif // RectSVGInterpolation_h | 45 #endif // RectSVGInterpolation_h |
OLD | NEW |