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

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

Issue 2058613002: Move WTF string to number converter functions to StringToNumber.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing files. Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "core/css/parser/CSSParserFastPaths.h" 5 #include "core/css/parser/CSSParserFastPaths.h"
6 6
7 #include "core/StylePropertyShorthand.h" 7 #include "core/StylePropertyShorthand.h"
8 #include "core/css/CSSColorValue.h" 8 #include "core/css/CSSColorValue.h"
9 #include "core/css/CSSFunctionValue.h" 9 #include "core/css/CSSFunctionValue.h"
10 #include "core/css/CSSInheritedValue.h" 10 #include "core/css/CSSInheritedValue.h"
11 #include "core/css/CSSInitialValue.h" 11 #include "core/css/CSSInitialValue.h"
12 #include "core/css/CSSPrimitiveValue.h" 12 #include "core/css/CSSPrimitiveValue.h"
13 #include "core/css/StyleColor.h" 13 #include "core/css/StyleColor.h"
14 #include "core/css/parser/CSSParserIdioms.h" 14 #include "core/css/parser/CSSParserIdioms.h"
15 #include "core/css/parser/CSSPropertyParser.h" 15 #include "core/css/parser/CSSPropertyParser.h"
16 #include "core/html/parser/HTMLParserIdioms.h" 16 #include "core/html/parser/HTMLParserIdioms.h"
17 #include "platform/RuntimeEnabledFeatures.h" 17 #include "platform/RuntimeEnabledFeatures.h"
18 #include "wtf/text/StringToNumber.h"
18 19
19 namespace blink { 20 namespace blink {
20 21
21 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce ptsNegativeNumbers) 22 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce ptsNegativeNumbers)
22 { 23 {
23 switch (propertyId) { 24 switch (propertyId) {
24 case CSSPropertyFontSize: 25 case CSSPropertyFontSize:
25 case CSSPropertyGridColumnGap: 26 case CSSPropertyGridColumnGap:
26 case CSSPropertyGridRowGap: 27 case CSSPropertyGridRowGap:
27 case CSSPropertyHeight: 28 case CSSPropertyHeight:
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 if (isColorPropertyID(propertyID)) 1075 if (isColorPropertyID(propertyID))
1075 return parseColor(string, parserMode); 1076 return parseColor(string, parserMode);
1076 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode)) 1077 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode))
1077 return keyword; 1078 return keyword;
1078 if (CSSValue* transform = parseSimpleTransform(propertyID, string)) 1079 if (CSSValue* transform = parseSimpleTransform(propertyID, string))
1079 return transform; 1080 return transform;
1080 return nullptr; 1081 return nullptr;
1081 } 1082 }
1082 1083
1083 } // namespace blink 1084 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698