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 IntegerOptionalIntegerSVGInterpolation_h | 5 #ifndef IntegerOptionalIntegerSVGInterpolation_h |
6 #define IntegerOptionalIntegerSVGInterpolation_h | 6 #define IntegerOptionalIntegerSVGInterpolation_h |
7 | 7 |
8 #include "core/animation/SVGInterpolation.h" | 8 #include "core/animation/SVGInterpolation.h" |
9 #include "core/svg/SVGIntegerOptionalInteger.h" | 9 #include "core/svg/SVGIntegerOptionalInteger.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 { | 24 { |
25 return fromInterpolableValue(*m_cachedValue, m_min); | 25 return fromInterpolableValue(*m_cachedValue, m_min); |
26 } | 26 } |
27 | 27 |
28 DEFINE_INLINE_VIRTUAL_TRACE() | 28 DEFINE_INLINE_VIRTUAL_TRACE() |
29 { | 29 { |
30 SVGInterpolation::trace(visitor); | 30 SVGInterpolation::trace(visitor); |
31 } | 31 } |
32 | 32 |
33 private: | 33 private: |
34 IntegerOptionalIntegerSVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableVa
lue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPt
r<SVGAnimatedPropertyBase> attribute, int min) | 34 IntegerOptionalIntegerSVGInterpolation(PassOwnPtr<InterpolableValue> start,
PassOwnPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBas
e> attribute, int min) |
35 : SVGInterpolation(start, end, attribute) | 35 : SVGInterpolation(start, end, attribute) |
36 , m_min(min) | 36 , m_min(min) |
37 { | 37 { |
38 } | 38 } |
39 | 39 |
40 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGProp
ertyBase*); | 40 static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGPropertyBase*); |
41 | 41 |
42 static PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> fromInterpolableVal
ue(const InterpolableValue&, int); | 42 static PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> fromInterpolableVal
ue(const InterpolableValue&, int); |
43 | 43 |
44 const int m_min; | 44 const int m_min; |
45 }; | 45 }; |
46 | 46 |
47 } | 47 } |
48 | 48 |
49 #endif // IntegerOptionalIntegerSVGInterpolation_h | 49 #endif // IntegerOptionalIntegerSVGInterpolation_h |
OLD | NEW |