| Index: third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp b/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d24654765983e287d4f8708fa5fc30ff89a274eb
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp
|
| @@ -0,0 +1,43 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "core/css/properties/CSSPaddingProperties.h"
|
| +
|
| +#include "core/css/parser/CSSParserTokenRange.h"
|
| +
|
| +namespace blink {
|
| +
|
| +const CSSValue* CSSPropertyAPIWebkitPaddingStart::parseSingleValue(
|
| + CSSParserTokenRange& range,
|
| + const CSSParserContext& context) {
|
| + return consumeLengthOrPercent(
|
| + range, context.mode(), ValueRangeNonNegative,
|
| + CSSPropertyParserHelpers::UnitlessQuirk::Forbid);
|
| +}
|
| +
|
| +const CSSValue* CSSPropertyAPIWebkitPaddingEnd::parseSingleValue(
|
| + CSSParserTokenRange& range,
|
| + const CSSParserContext& context) {
|
| + return consumeLengthOrPercent(
|
| + range, context.mode(), ValueRangeNonNegative,
|
| + CSSPropertyParserHelpers::UnitlessQuirk::Forbid);
|
| +}
|
| +
|
| +const CSSValue* CSSPropertyAPIWebkitPaddingBefore::parseSingleValue(
|
| + CSSParserTokenRange& range,
|
| + const CSSParserContext& context) {
|
| + return consumeLengthOrPercent(
|
| + range, context.mode(), ValueRangeNonNegative,
|
| + CSSPropertyParserHelpers::UnitlessQuirk::Forbid);
|
| +}
|
| +
|
| +const CSSValue* CSSPropertyAPIWebkitPaddingAfter::parseSingleValue(
|
| + CSSParserTokenRange& range,
|
| + const CSSParserContext& context) {
|
| + return consumeLengthOrPercent(
|
| + range, context.mode(), ValueRangeNonNegative,
|
| + CSSPropertyParserHelpers::UnitlessQuirk::Forbid);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|