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

Side by Side Diff: Source/core/animation/LengthPropertyFunctions.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
« no previous file with comments | « Source/core/animation/Keyframe.h ('k') | Source/core/animation/LengthSVGInterpolation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 LengthPropertyFunctions_h 5 #ifndef LengthPropertyFunctions_h
6 #define LengthPropertyFunctions_h 6 #define LengthPropertyFunctions_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/CSSValueKeywords.h" 9 #include "core/CSSValueKeywords.h"
10 #include "platform/Length.h" 10 #include "platform/Length.h"
11 #include "wtf/Allocator.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class ComputedStyle; 15 class ComputedStyle;
15 16
16 class LengthPropertyFunctions { 17 class LengthPropertyFunctions {
18 STATIC_ONLY(LengthPropertyFunctions);
17 public: 19 public:
18 typedef void (ComputedStyle::*LengthSetter)(const Length&); 20 typedef void (ComputedStyle::*LengthSetter)(const Length&);
19 21
20 static ValueRange valueRange(CSSPropertyID); 22 static ValueRange valueRange(CSSPropertyID);
21 static bool getPixelsForKeyword(CSSPropertyID, CSSValueID, double& resultPix els); 23 static bool getPixelsForKeyword(CSSPropertyID, CSSValueID, double& resultPix els);
22 static bool getLength(CSSPropertyID, const ComputedStyle&, Length& result); 24 static bool getLength(CSSPropertyID, const ComputedStyle&, Length& result);
23 static bool getInitialLength(CSSPropertyID, Length& result); 25 static bool getInitialLength(CSSPropertyID, Length& result);
24 }; 26 };
25 27
26 } // namespace blink 28 } // namespace blink
27 29
28 #endif // LengthPropertyFunctions_h 30 #endif // LengthPropertyFunctions_h
OLDNEW
« no previous file with comments | « Source/core/animation/Keyframe.h ('k') | Source/core/animation/LengthSVGInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698