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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp

Issue 1309513008: [css-grid] Implement grid gutters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch for landing Created 5 years, 2 months 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/css/parser/CSSParserFastPaths.h" 6 #include "core/css/parser/CSSParserFastPaths.h"
7 7
8 #include "core/StylePropertyShorthand.h" 8 #include "core/StylePropertyShorthand.h"
9 #include "core/css/CSSFunctionValue.h" 9 #include "core/css/CSSFunctionValue.h"
10 #include "core/css/CSSValuePool.h" 10 #include "core/css/CSSValuePool.h"
11 #include "core/css/parser/CSSParserIdioms.h" 11 #include "core/css/parser/CSSParserIdioms.h"
12 #include "core/css/parser/CSSParserString.h" 12 #include "core/css/parser/CSSParserString.h"
13 #include "core/css/parser/CSSPropertyParser.h" 13 #include "core/css/parser/CSSPropertyParser.h"
14 #include "core/html/parser/HTMLParserIdioms.h" 14 #include "core/html/parser/HTMLParserIdioms.h"
15 #include "platform/RuntimeEnabledFeatures.h" 15 #include "platform/RuntimeEnabledFeatures.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce ptsNegativeNumbers) 19 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce ptsNegativeNumbers)
20 { 20 {
21 switch (propertyId) { 21 switch (propertyId) {
22 case CSSPropertyFontSize: 22 case CSSPropertyFontSize:
23 case CSSPropertyGridColumnGap:
24 case CSSPropertyGridRowGap:
23 case CSSPropertyHeight: 25 case CSSPropertyHeight:
24 case CSSPropertyWidth: 26 case CSSPropertyWidth:
25 case CSSPropertyMinHeight: 27 case CSSPropertyMinHeight:
26 case CSSPropertyMinWidth: 28 case CSSPropertyMinWidth:
27 case CSSPropertyPaddingBottom: 29 case CSSPropertyPaddingBottom:
28 case CSSPropertyPaddingLeft: 30 case CSSPropertyPaddingLeft:
29 case CSSPropertyPaddingRight: 31 case CSSPropertyPaddingRight:
30 case CSSPropertyPaddingTop: 32 case CSSPropertyPaddingTop:
31 case CSSPropertyWebkitLogicalWidth: 33 case CSSPropertyWebkitLogicalWidth:
32 case CSSPropertyWebkitLogicalHeight: 34 case CSSPropertyWebkitLogicalHeight:
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 if (isColorPropertyID(propertyID)) 1021 if (isColorPropertyID(propertyID))
1020 return parseColor(string, parserMode); 1022 return parseColor(string, parserMode);
1021 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing)) 1023 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing))
1022 return keyword.release(); 1024 return keyword.release();
1023 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string)) 1025 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string))
1024 return transform.release(); 1026 return transform.release();
1025 return nullptr; 1027 return nullptr;
1026 } 1028 }
1027 1029
1028 } // namespace blink 1030 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698