Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.cpp

Issue 2533673002: Added CSSPropertyAPI and CSS padding properties which implement this API (Closed)
Patch Set: review comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
alancutter (OOO until 2018) 2016/11/30 23:46:54 These implementations are identical, they should i
aazzam 2016/12/01 04:17:53 done
42
43 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698