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 DefaultSVGInterpolation_h | 5 #ifndef DefaultSVGInterpolation_h |
6 #define DefaultSVGInterpolation_h | 6 #define DefaultSVGInterpolation_h |
7 | 7 |
8 #include "core/animation/SVGInterpolation.h" | 8 #include "core/animation/SVGInterpolation.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class DefaultSVGInterpolation : public SVGInterpolation { | 12 class DefaultSVGInterpolation : public SVGInterpolation { |
13 public: | 13 public: |
14 static PassRefPtrWillBeRawPtr<DefaultSVGInterpolation> create(SVGPropertyBas
e* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase>
attribute) | 14 static PassRefPtr<DefaultSVGInterpolation> create(SVGPropertyBase* start, SV
GPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) |
15 { | 15 { |
16 return adoptRefWillBeNoop(new DefaultSVGInterpolation(start, end, attrib
ute)); | 16 return adoptRef(new DefaultSVGInterpolation(start, end, attribute)); |
17 } | 17 } |
18 | 18 |
19 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const
final; | 19 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const
final; |
20 | 20 |
21 DECLARE_VIRTUAL_TRACE(); | |
22 | |
23 private: | 21 private: |
24 DefaultSVGInterpolation(SVGPropertyBase* start, SVGPropertyBase* end, PassRe
fPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute); | 22 DefaultSVGInterpolation(SVGPropertyBase* start, SVGPropertyBase* end, PassRe
fPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute); |
25 | 23 |
26 RefPtrWillBeMember<SVGPropertyBase> m_start; | 24 RefPtrWillBePersistent<SVGPropertyBase> m_start; |
27 RefPtrWillBeMember<SVGPropertyBase> m_end; | 25 RefPtrWillBePersistent<SVGPropertyBase> m_end; |
28 }; | 26 }; |
29 | 27 |
30 } | 28 } |
31 | 29 |
32 #endif // DefaultSVGInterpolation_h | 30 #endif // DefaultSVGInterpolation_h |
OLD | NEW |