| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |