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

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

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: fix compile Created 3 years, 12 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 2016 The Chromium Authors. All rights reserved. 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 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/CSSSyntaxDescriptor.h" 5 #include "core/css/CSSSyntaxDescriptor.h"
6 6
7 #include "core/css/CSSCustomPropertyDeclaration.h" 7 #include "core/css/CSSCustomPropertyDeclaration.h"
8 #include "core/css/CSSURIValue.h" 8 #include "core/css/CSSURIValue.h"
9 #include "core/css/CSSValueList.h" 9 #include "core/css/CSSValueList.h"
10 #include "core/css/CSSVariableReferenceValue.h" 10 #include "core/css/CSSVariableReferenceValue.h"
11 #include "core/css/parser/CSSParserContext.h"
11 #include "core/css/parser/CSSParserIdioms.h" 12 #include "core/css/parser/CSSParserIdioms.h"
12 #include "core/css/parser/CSSPropertyParserHelpers.h" 13 #include "core/css/parser/CSSPropertyParserHelpers.h"
13 #include "core/css/parser/CSSVariableParser.h" 14 #include "core/css/parser/CSSVariableParser.h"
14 #include "core/html/parser/HTMLParserIdioms.h" 15 #include "core/html/parser/HTMLParserIdioms.h"
15 16
16 namespace blink { 17 namespace blink {
17 18
18 void consumeWhitespace(const String& string, size_t& offset) { 19 void consumeWhitespace(const String& string, size_t& offset) {
19 while (isHTMLSpace(string[offset])) 20 while (isHTMLSpace(string[offset]))
20 offset++; 21 offset++;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 range.consumeWhitespace(); 204 range.consumeWhitespace();
204 for (const CSSSyntaxComponent& component : m_syntaxComponents) { 205 for (const CSSSyntaxComponent& component : m_syntaxComponents) {
205 if (const CSSValue* result = consumeSyntaxComponent(component, range)) 206 if (const CSSValue* result = consumeSyntaxComponent(component, range))
206 return result; 207 return result;
207 } 208 }
208 return CSSVariableParser::parseRegisteredPropertyValue(range, true, 209 return CSSVariableParser::parseRegisteredPropertyValue(range, true,
209 isAnimationTainted); 210 isAnimationTainted);
210 } 211 }
211 212
212 } // namespace blink 213 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | third_party/WebKit/Source/core/css/MediaValuesCached.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698