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 #include "core/css/properties/CSSPaddingProperties.h" |
| 6 |
| 7 #include "core/css/parser/CSSParserTokenRange.h" |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 const CSSValue* CSSPropertyAPIWebkitPaddingStart::parseSingleValue( |
| 12 CSSParserTokenRange& range, |
| 13 const CSSParserContext& context) { |
| 14 return consumeLengthOrPercent( |
| 15 range, context.mode(), ValueRangeNonNegative, |
| 16 CSSPropertyParserHelpers::UnitlessQuirk::Forbid); |
| 17 } |
| 18 |
| 19 const CSSValue* CSSPropertyAPIWebkitPaddingEnd::parseSingleValue( |
| 20 CSSParserTokenRange& range, |
| 21 const CSSParserContext& context) { |
| 22 return consumeLengthOrPercent( |
| 23 range, context.mode(), ValueRangeNonNegative, |
| 24 CSSPropertyParserHelpers::UnitlessQuirk::Forbid); |
| 25 } |
| 26 |
| 27 const CSSValue* CSSPropertyAPIWebkitPaddingBefore::parseSingleValue( |
| 28 CSSParserTokenRange& range, |
| 29 const CSSParserContext& context) { |
| 30 return consumeLengthOrPercent( |
| 31 range, context.mode(), ValueRangeNonNegative, |
| 32 CSSPropertyParserHelpers::UnitlessQuirk::Forbid); |
| 33 } |
| 34 |
| 35 const CSSValue* CSSPropertyAPIWebkitPaddingAfter::parseSingleValue( |
| 36 CSSParserTokenRange& range, |
| 37 const CSSParserContext& context) { |
| 38 return consumeLengthOrPercent( |
| 39 range, context.mode(), ValueRangeNonNegative, |
| 40 CSSPropertyParserHelpers::UnitlessQuirk::Forbid); |
| 41 } |
| 42 |
| 43 } // namespace blink |
OLD | NEW |