| OLD | NEW |
| 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/CSSParserImpl.h" | 5 #include "core/css/parser/CSSParserImpl.h" |
| 6 | 6 |
| 7 #include "core/css/CSSCustomIdentValue.h" | 7 #include "core/css/CSSCustomIdentValue.h" |
| 8 #include "core/css/CSSCustomPropertyDeclaration.h" | 8 #include "core/css/CSSCustomPropertyDeclaration.h" |
| 9 #include "core/css/CSSKeyframesRule.h" | 9 #include "core/css/CSSKeyframesRule.h" |
| 10 #include "core/css/CSSStyleSheet.h" | 10 #include "core/css/CSSStyleSheet.h" |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 m_observerWrapper->skipCommentsBefore(range, false); | 809 m_observerWrapper->skipCommentsBefore(range, false); |
| 810 break; | 810 break; |
| 811 } | 811 } |
| 812 case AtKeywordToken: { | 812 case AtKeywordToken: { |
| 813 AllowedRulesType allowedRules = | 813 AllowedRulesType allowedRules = |
| 814 ruleType == StyleRule::Style && | 814 ruleType == StyleRule::Style && |
| 815 RuntimeEnabledFeatures::cssApplyAtRulesEnabled() | 815 RuntimeEnabledFeatures::cssApplyAtRulesEnabled() |
| 816 ? ApplyRules | 816 ? ApplyRules |
| 817 : NoRules; | 817 : NoRules; |
| 818 StyleRuleBase* rule = consumeAtRule(range, allowedRules); | 818 StyleRuleBase* rule = consumeAtRule(range, allowedRules); |
| 819 ASSERT_UNUSED(rule, !rule); | 819 DCHECK(!rule); |
| 820 break; | 820 break; |
| 821 } | 821 } |
| 822 default: // Parse error, unexpected token in declaration list | 822 default: // Parse error, unexpected token in declaration list |
| 823 while (!range.atEnd() && range.peek().type() != SemicolonToken) | 823 while (!range.atEnd() && range.peek().type() != SemicolonToken) |
| 824 range.consumeComponentValue(); | 824 range.consumeComponentValue(); |
| 825 break; | 825 break; |
| 826 } | 826 } |
| 827 } | 827 } |
| 828 | 828 |
| 829 // Yield remaining comments | 829 // Yield remaining comments |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 else | 932 else |
| 933 return nullptr; // Parser error, invalid value in keyframe selector | 933 return nullptr; // Parser error, invalid value in keyframe selector |
| 934 if (range.atEnd()) | 934 if (range.atEnd()) |
| 935 return result; | 935 return result; |
| 936 if (range.consume().type() != CommaToken) | 936 if (range.consume().type() != CommaToken) |
| 937 return nullptr; // Parser error | 937 return nullptr; // Parser error |
| 938 } | 938 } |
| 939 } | 939 } |
| 940 | 940 |
| 941 } // namespace blink | 941 } // namespace blink |
| OLD | NEW |