Changeset 150682 in webkit
- Timestamp:
- May 25, 2013 1:29:42 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150675 r150682 1 2013-05-25 Sergio Villar Senin <svillar@igalia.com> 2 3 Reducing CSS code duplication in declaration list error recovery 4 https://bugs.webkit.org/show_bug.cgi?id=115157 5 6 Reviewed by Andreas Kling. 7 8 From Blink r148974 by <serya@chromium.org> 9 10 Refactor "invalid_block_list error | /* empty */" in a new 11 decl_list_recovery rule that allows to remove 4 redundant rules. 12 13 No new test required as we're just refactoring code, no new behaviour. 14 15 * css/CSSGrammar.y.in: 16 1 17 2013-05-24 Ryosuke Niwa <rniwa@webkit.org> 2 18 -
trunk/Source/WebCore/css/CSSGrammar.y.in
r150672 r150682 1533 1533 $$ = $1; 1534 1534 } 1535 | errors invalid_block_list error{1535 | errors decl_list_recovery { 1536 1536 parser->syntaxError($1, CSSParser::PropertyDeclarationError); 1537 1537 $$ = false; 1538 1538 } 1539 | errors { 1540 parser->syntaxError($1, CSSParser::PropertyDeclarationError); 1541 $$ = false; 1542 } 1543 | decl_list errors { 1544 parser->syntaxError($2, CSSParser::PropertyDeclarationError); 1545 $$ = $1; 1546 } 1547 | decl_list errors invalid_block_list error { 1539 | decl_list errors decl_list_recovery { 1548 1540 parser->syntaxError($2, CSSParser::PropertyDeclarationError); 1549 1541 $$ = $1; … … 1564 1556 $$ = false; 1565 1557 } 1566 | errors ';' maybe_space {1558 | errors decl_list_recovery ';' maybe_space { 1567 1559 parser->syntaxError($1, CSSParser::PropertyDeclarationError); 1568 1560 parser->markPropertyStart(); 1569 1561 $$ = false; 1570 1562 } 1571 | errors invalid_block_list error ';' maybe_space {1572 parser->syntaxError($1, CSSParser::PropertyDeclarationError);1573 $$ = false;1574 }1575 1563 | decl_list declaration ';' maybe_space { 1576 1564 parser->markPropertyStart(); … … 1579 1567 $$ = $2; 1580 1568 } 1581 | decl_list errors ';' maybe_space {1569 | decl_list errors decl_list_recovery ';' maybe_space { 1582 1570 parser->syntaxError($2, CSSParser::PropertyDeclarationError); 1583 1571 parser->markPropertyStart(); 1584 1572 $$ = $1; 1585 1573 } 1586 | decl_list errors invalid_block_list error ';' maybe_space {1587 parser->syntaxError($2, CSSParser::PropertyDeclarationError); 1588 parser->markPropertyStart(); 1589 $$ = $1;1590 }1574 ; 1575 1576 decl_list_recovery: 1577 invalid_block_list error 1578 | /* empty */ 1591 1579 ; 1592 1580
Note: See TracChangeset
for help on using the changeset viewer.