OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 CSSPaddingProperties_h |
| 6 #define CSSPaddingProperties_h |
| 7 |
| 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/css/parser/CSSPropertyParserHelpers.h" |
| 10 #include "core/css/properties/CSSPropertyAPI.h" |
| 11 #include "platform/Length.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class CSSParserTokenRange; |
| 16 |
| 17 class CSSPropertyAPIWebkitPaddingStart : public CSSPropertyAPI { |
| 18 STATIC_ONLY(CSSPropertyAPIWebkitPaddingStart); |
| 19 |
| 20 public: |
| 21 static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| 22 const CSSParserContext&); |
| 23 static inline CSSPropertyID getID() { return CSSPropertyWebkitPaddingStart; } |
| 24 }; |
| 25 |
| 26 class CSSPropertyAPIWebkitPaddingEnd : public CSSPropertyAPI { |
| 27 STATIC_ONLY(CSSPropertyAPIWebkitPaddingEnd); |
| 28 |
| 29 public: |
| 30 static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| 31 const CSSParserContext&); |
| 32 static inline CSSPropertyID getID() { return CSSPropertyWebkitPaddingEnd; } |
| 33 }; |
| 34 |
| 35 class CSSPropertyAPIWebkitPaddingBefore : public CSSPropertyAPI { |
| 36 STATIC_ONLY(CSSPropertyAPIWebkitPaddingBefore); |
| 37 |
| 38 public: |
| 39 static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| 40 const CSSParserContext&); |
| 41 static inline CSSPropertyID getID() { return CSSPropertyWebkitPaddingBefore; } |
| 42 }; |
| 43 |
| 44 class CSSPropertyAPIWebkitPaddingAfter : public CSSPropertyAPI { |
| 45 STATIC_ONLY(CSSPropertyAPIWebkitPaddingAfter); |
| 46 |
| 47 public: |
| 48 static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| 49 const CSSParserContext&); |
| 50 static inline CSSPropertyID getID() { return CSSPropertyWebkitPaddingAfter; } |
| 51 }; |
| 52 |
| 53 } // namespace blink |
| 54 |
| 55 #endif // CSSPaddingProperties_h |
OLD | NEW |