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

Side by Side Diff: Source/core/css/CSSGrammar.y.in

Issue 14473002: The bison grammar for @supports should return 0 in case of an error. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/css3/supports-crash-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2012 Intel Corporation. All rights reserved. 6 * Copyright (C) 2012 Intel Corporation. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 IDENT maybe_space { 697 IDENT maybe_space {
698 $$ = $1; 698 $$ = $1;
699 } 699 }
700 ; 700 ;
701 701
702 supports: 702 supports:
703 before_supports_rule SUPPORTS_SYM maybe_space supports_condition at_supports _rule_header_end '{' at_rule_body_start maybe_space block_rule_list save_block { 703 before_supports_rule SUPPORTS_SYM maybe_space supports_condition at_supports _rule_header_end '{' at_rule_body_start maybe_space block_rule_list save_block {
704 $$ = parser->createSupportsRule($4, $9); 704 $$ = parser->createSupportsRule($4, $9);
705 } 705 }
706 | before_supports_rule SUPPORTS_SYM supports_error { 706 | before_supports_rule SUPPORTS_SYM supports_error {
707 $$ = 0;
707 parser->endRuleBody(true); 708 parser->endRuleBody(true);
708 parser->popSupportsRuleData(); 709 parser->popSupportsRuleData();
709 } 710 }
710 ; 711 ;
711 712
712 supports_error: 713 supports_error:
713 error ';' { 714 error ';' {
714 } 715 }
715 | error invalid_block { 716 | error invalid_block {
716 } 717 }
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 } 1996 }
1996 ; 1997 ;
1997 1998
1998 error_location: { 1999 error_location: {
1999 $$ = parser->currentLocation(); 2000 $$ = parser->currentLocation();
2000 } 2001 }
2001 ; 2002 ;
2002 2003
2003 %% 2004 %%
2004 2005
OLDNEW
« no previous file with comments | « LayoutTests/css3/supports-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698