Chromium Code Reviews| 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 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 #include "wtf/Allocator.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class ComputedStyle; | 15 class ComputedStyle; |
| 16 | 16 |
| 17 class LengthPropertyFunctions { | 17 class LengthPropertyFunctions { |
| 18 STATIC_ONLY(LengthPropertyFunctions); | 18 STATIC_ONLY(LengthPropertyFunctions); |
| 19 public: | 19 public: |
| 20 typedef void (ComputedStyle::*LengthSetter)(const Length&); | |
| 21 | |
| 22 static ValueRange valueRange(CSSPropertyID); | 20 static ValueRange valueRange(CSSPropertyID); |
| 21 static bool hasZoomedLength(CSSPropertyID); | |
|
dstockwell
2015/08/31 05:33:40
has -> is? I imagine there's only one length per p
alancutter (OOO until 2018)
2015/08/31 07:15:30
Done.
| |
| 23 static bool getPixelsForKeyword(CSSPropertyID, CSSValueID, double& resultPix els); | 22 static bool getPixelsForKeyword(CSSPropertyID, CSSValueID, double& resultPix els); |
| 23 static bool getInitialLength(CSSPropertyID, Length& result); | |
| 24 static bool getLength(CSSPropertyID, const ComputedStyle&, Length& result); | 24 static bool getLength(CSSPropertyID, const ComputedStyle&, Length& result); |
| 25 static bool getInitialLength(CSSPropertyID, Length& result); | 25 static bool setLength(CSSPropertyID, ComputedStyle&, const Length&); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace blink | 28 } // namespace blink |
| 29 | 29 |
| 30 #endif // LengthPropertyFunctions_h | 30 #endif // LengthPropertyFunctions_h |
| OLD | NEW |