OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef LengthPropertyFunctions_h |
| 6 #define LengthPropertyFunctions_h |
| 7 |
| 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/CSSValueKeywords.h" |
| 10 #include "platform/Length.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class ComputedStyle; |
| 15 |
| 16 class LengthPropertyFunctions { |
| 17 public: |
| 18 typedef void (ComputedStyle::*LengthSetter)(const Length&); |
| 19 |
| 20 static ValueRange valueRange(CSSPropertyID); |
| 21 static bool getPixelsForKeyword(CSSPropertyID, CSSValueID, double& resultPix
els); |
| 22 static bool getLength(CSSPropertyID, const ComputedStyle&, Length& result); |
| 23 static bool getInitialLength(CSSPropertyID, Length& result); |
| 24 }; |
| 25 |
| 26 } // namespace blink |
| 27 |
| 28 #endif // LengthPropertyFunctions_h |
OLD | NEW |