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 "config.h" | 5 #include "config.h" |
6 #include "core/css/parser/CSSParserImpl.h" | 6 #include "core/css/parser/CSSParserImpl.h" |
7 | 7 |
8 #include "core/css/CSSKeyframesRule.h" | 8 #include "core/css/CSSKeyframesRule.h" |
9 #include "core/css/CSSStyleSheet.h" | 9 #include "core/css/CSSStyleSheet.h" |
10 #include "core/css/StylePropertySet.h" | 10 #include "core/css/StylePropertySet.h" |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 break; | 513 break; |
514 case IdentToken: { | 514 case IdentToken: { |
515 const CSSParserToken* declarationStart = &range.peek(); | 515 const CSSParserToken* declarationStart = &range.peek(); |
516 while (!range.atEnd() && range.peek().type() != SemicolonToken) | 516 while (!range.atEnd() && range.peek().type() != SemicolonToken) |
517 range.consumeComponentValue(); | 517 range.consumeComponentValue(); |
518 consumeDeclaration(range.makeSubRange(declarationStart, &range.peek(
)), ruleType); | 518 consumeDeclaration(range.makeSubRange(declarationStart, &range.peek(
)), ruleType); |
519 break; | 519 break; |
520 } | 520 } |
521 case AtKeywordToken: { | 521 case AtKeywordToken: { |
522 RefPtrWillBeRawPtr<StyleRuleBase> rule = consumeAtRule(range, NoRule
s); | 522 RefPtrWillBeRawPtr<StyleRuleBase> rule = consumeAtRule(range, NoRule
s); |
523 ASSERT(!rule); | 523 ASSERT_UNUSED(rule, !rule); |
524 break; | 524 break; |
525 } | 525 } |
526 default: // Parse error, unexpected token in declaration list | 526 default: // Parse error, unexpected token in declaration list |
527 while (!range.atEnd() && range.peek().type() != SemicolonToken) | 527 while (!range.atEnd() && range.peek().type() != SemicolonToken) |
528 range.consumeComponentValue(); | 528 range.consumeComponentValue(); |
529 break; | 529 break; |
530 } | 530 } |
531 } | 531 } |
532 } | 532 } |
533 | 533 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 else | 583 else |
584 return nullptr; // Parser error, invalid value in keyframe selector | 584 return nullptr; // Parser error, invalid value in keyframe selector |
585 if (range.atEnd()) | 585 if (range.atEnd()) |
586 return result.release(); | 586 return result.release(); |
587 if (range.consume().type() != CommaToken) | 587 if (range.consume().type() != CommaToken) |
588 return nullptr; // Parser error | 588 return nullptr; // Parser error |
589 } | 589 } |
590 } | 590 } |
591 | 591 |
592 } // namespace blink | 592 } // namespace blink |
OLD | NEW |