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

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

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resize expect size of Persistent Created 5 years, 6 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
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 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"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class LengthSVGInterpolation : public SVGInterpolation { 14 class LengthSVGInterpolation : public SVGInterpolation {
15 public: 15 public:
16 typedef SVGLengthList ListType; 16 typedef SVGLengthList ListType;
17 struct NonInterpolableType { 17 struct NonInterpolableType {
18 SVGLengthMode unitMode; 18 SVGLengthMode unitMode;
19 SVGLengthNegativeValuesMode negativeValuesMode; 19 SVGLengthNegativeValuesMode negativeValuesMode;
20 }; 20 };
21 21
22 static bool canCreateFrom(SVGLength*, SVGLength*) 22 static bool canCreateFrom(SVGLength*, SVGLength*)
23 { 23 {
24 return true; 24 return true;
25 } 25 }
26 26
27 static PassRefPtrWillBeRawPtr<SVGLengthList> createList(const SVGAnimatedPro pertyBase&); 27 static PassRefPtrWillBeRawPtr<SVGLengthList> createList(const SVGAnimatedPro pertyBase&);
28 28
29 static PassRefPtrWillBeRawPtr<LengthSVGInterpolation> create(SVGPropertyBase * start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> a ttribute); 29 static LengthSVGInterpolation* create(SVGPropertyBase* start, SVGPropertyBas e* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute);
30 30
31 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGLeng th*, const SVGAnimatedPropertyBase*, NonInterpolableType*); 31 static InterpolableValue* toInterpolableValue(SVGLength*, const SVGAnimatedP ropertyBase*, NonInterpolableType*);
32 32
33 static PassRefPtrWillBeRawPtr<SVGLength> fromInterpolableValue(const Interpo lableValue&, const NonInterpolableType&, const SVGElement*); 33 static PassRefPtrWillBeRawPtr<SVGLength> fromInterpolableValue(const Interpo lableValue&, const NonInterpolableType&, const SVGElement*);
34 34
35 DEFINE_INLINE_VIRTUAL_TRACE() 35 DEFINE_INLINE_VIRTUAL_TRACE()
36 { 36 {
37 SVGInterpolation::trace(visitor); 37 SVGInterpolation::trace(visitor);
38 } 38 }
39 39
40 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement &) const override final; 40 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement &) const override final;
41 41
42 private: 42 private:
43 LengthSVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, Pass OwnPtrWillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPro pertyBase> attribute, const NonInterpolableType& modeData) 43 LengthSVGInterpolation(InterpolableValue* start, InterpolableValue* end, Pas sRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, const NonInterpolableTyp e& modeData)
44 : SVGInterpolation(start, end, attribute) 44 : SVGInterpolation(start, end, attribute)
45 , m_modeData(modeData) 45 , m_modeData(modeData)
46 { 46 {
47 } 47 }
48 48
49 const NonInterpolableType m_modeData; 49 const NonInterpolableType m_modeData;
50 }; 50 };
51 51
52 } 52 }
53 53
54 #endif // LengthSVGInterpolation_h 54 #endif // LengthSVGInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698