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

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

Issue 2813863003: Rewrite references to "wtf/" to "platform/wtf/" in core/css and core/style. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 "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/CSSIdentifierValue.h" 10 #include "core/css/CSSIdentifierValue.h"
11 #include "core/css/CSSInheritedValue.h" 11 #include "core/css/CSSInheritedValue.h"
12 #include "core/css/CSSInitialValue.h" 12 #include "core/css/CSSInitialValue.h"
13 #include "core/css/CSSPrimitiveValue.h" 13 #include "core/css/CSSPrimitiveValue.h"
14 #include "core/css/StyleColor.h" 14 #include "core/css/StyleColor.h"
15 #include "core/css/parser/CSSParserIdioms.h" 15 #include "core/css/parser/CSSParserIdioms.h"
16 #include "core/css/parser/CSSPropertyParser.h" 16 #include "core/css/parser/CSSPropertyParser.h"
17 #include "core/html/parser/HTMLParserIdioms.h" 17 #include "core/html/parser/HTMLParserIdioms.h"
18 #include "platform/RuntimeEnabledFeatures.h" 18 #include "platform/RuntimeEnabledFeatures.h"
19 #include "wtf/text/StringToNumber.h" 19 #include "platform/wtf/text/StringToNumber.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 using namespace cssvalue; 23 using namespace cssvalue;
24 24
25 static inline bool IsSimpleLengthPropertyID(CSSPropertyID property_id, 25 static inline bool IsSimpleLengthPropertyID(CSSPropertyID property_id,
26 bool& accepts_negative_numbers) { 26 bool& accepts_negative_numbers) {
27 switch (property_id) { 27 switch (property_id) {
28 case CSSPropertyBlockSize: 28 case CSSPropertyBlockSize:
29 case CSSPropertyInlineSize: 29 case CSSPropertyInlineSize:
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 if (IsColorPropertyID(property_id)) 1224 if (IsColorPropertyID(property_id))
1225 return ParseColor(string, parser_mode); 1225 return ParseColor(string, parser_mode);
1226 if (CSSValue* keyword = ParseKeywordValue(property_id, string, parser_mode)) 1226 if (CSSValue* keyword = ParseKeywordValue(property_id, string, parser_mode))
1227 return keyword; 1227 return keyword;
1228 if (CSSValue* transform = ParseSimpleTransform(property_id, string)) 1228 if (CSSValue* transform = ParseSimpleTransform(property_id, string))
1229 return transform; 1229 return transform;
1230 return nullptr; 1230 return nullptr;
1231 } 1231 }
1232 1232
1233 } // namespace blink 1233 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698