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

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

Issue 1188513005: Move CSSParserString out of CSSParserValues.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change includes to use CSSParserString.h Created 5 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 | Source/core/css/parser/CSSParserString.h » ('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 "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/CSSParserValues.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:
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 if (isColorPropertyID(propertyID)) 962 if (isColorPropertyID(propertyID))
963 return parseColor(string, isQuirksModeBehavior(parserMode)); 963 return parseColor(string, isQuirksModeBehavior(parserMode));
964 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing)) 964 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing))
965 return keyword.release(); 965 return keyword.release();
966 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string)) 966 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string))
967 return transform.release(); 967 return transform.release();
968 return nullptr; 968 return nullptr;
969 } 969 }
970 970
971 } // namespace blink 971 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/parser/CSSParserString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698