Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: Source/core/animation/RectSVGInterpolation.h

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 namespace blink { 11 namespace blink {
12 12
13 class SVGRect; 13 class SVGRect;
14 14
15 class RectSVGInterpolation : public SVGInterpolation { 15 class RectSVGInterpolation : public SVGInterpolation {
16 public: 16 public:
17 static PassRefPtrWillBeRawPtr<RectSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> att ribute) 17 static PassRefPtr<RectSVGInterpolation> create(SVGPropertyBase* start, SVGPr opertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
18 { 18 {
19 return adoptRefWillBeNoop(new RectSVGInterpolation(toInterpolableValue(s tart), toInterpolableValue(end), attribute)); 19 return adoptRef(new RectSVGInterpolation(toInterpolableValue(start), toI nterpolableValue(end), attribute));
20 } 20 }
21 21
22 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final 22 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final
23 { 23 {
24 return fromInterpolableValue(*m_cachedValue); 24 return fromInterpolableValue(*m_cachedValue);
25 } 25 }
26 26
27 DEFINE_INLINE_VIRTUAL_TRACE()
28 {
29 SVGInterpolation::trace(visitor);
30 }
31
32 private: 27 private:
33 RectSVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOw nPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPrope rtyBase> attribute) 28 RectSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpo lableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
34 : SVGInterpolation(start, end, attribute) 29 : SVGInterpolation(start, end, attribute)
35 { 30 {
36 } 31 }
37 32
38 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGProp ertyBase*); 33 static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGPropertyBase*);
39 34
40 static PassRefPtrWillBeRawPtr<SVGRect> fromInterpolableValue(const Interpola bleValue&); 35 static PassRefPtrWillBeRawPtr<SVGRect> fromInterpolableValue(const Interpola bleValue&);
41 }; 36 };
42 37
43 } 38 }
44 39
45 #endif // RectSVGInterpolation_h 40 #endif // RectSVGInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698