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

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

Issue 1302463002: Make classes and structures in Source/core/animation fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 DISALLOW_ALLOCATION();
18 SVGLengthMode unitMode; 19 SVGLengthMode unitMode;
19 SVGLengthNegativeValuesMode negativeValuesMode; 20 SVGLengthNegativeValuesMode negativeValuesMode;
20 }; 21 };
21 22
22 static bool canCreateFrom(SVGLength*, SVGLength*) 23 static bool canCreateFrom(SVGLength*, SVGLength*)
23 { 24 {
24 return true; 25 return true;
25 } 26 }
26 27
27 static PassRefPtrWillBeRawPtr<SVGLengthList> createList(const SVGAnimatedPro pertyBase&); 28 static PassRefPtrWillBeRawPtr<SVGLengthList> createList(const SVGAnimatedPro pertyBase&);
(...skipping 17 matching lines...) Expand all
45 , m_modeData(modeData) 46 , m_modeData(modeData)
46 { 47 {
47 } 48 }
48 49
49 const NonInterpolableType m_modeData; 50 const NonInterpolableType m_modeData;
50 }; 51 };
51 52
52 } 53 }
53 54
54 #endif // LengthSVGInterpolation_h 55 #endif // LengthSVGInterpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/LengthPropertyFunctions.h ('k') | Source/core/animation/PointSVGInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698