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

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

Issue 16583003: Error recovery for valid media query followed by garbage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing comma in test. Created 7 years, 6 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
« no previous file with comments | « LayoutTests/fast/media/media-query-list-syntax-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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 $$ = parser->createFloatingMediaQuery(parser->sinkFloatingMediaQueryExpL ist($1)); 631 $$ = parser->createFloatingMediaQuery(parser->sinkFloatingMediaQueryExpL ist($1));
632 } 632 }
633 | maybe_media_restrictor medium maybe_and_media_query_exp_list { 633 | maybe_media_restrictor medium maybe_and_media_query_exp_list {
634 parser->tokenToLowerCase($2); 634 parser->tokenToLowerCase($2);
635 $$ = parser->createFloatingMediaQuery($1, $2, parser->sinkFloatingMediaQ ueryExpList($3)); 635 $$ = parser->createFloatingMediaQuery($1, $2, parser->sinkFloatingMediaQ ueryExpList($3));
636 } 636 }
637 ; 637 ;
638 638
639 media_query: 639 media_query:
640 valid_media_query 640 valid_media_query
641 | valid_media_query error rule_error_recovery {
642 $$ = parser->createFloatingNotAllQuery();
643 }
641 | error rule_error_recovery { 644 | error rule_error_recovery {
642 $$ = parser->createFloatingNotAllQuery(); 645 $$ = parser->createFloatingNotAllQuery();
643 } 646 }
644 ; 647 ;
645 648
646 maybe_media_list: 649 maybe_media_list:
647 /* empty */ { 650 /* empty */ {
648 $$ = parser->createMediaQuerySet(); 651 $$ = parser->createMediaQuerySet();
649 } 652 }
650 | media_list 653 | media_list
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 2005
2003 rule_error_recovery: 2006 rule_error_recovery:
2004 /* empty */ 2007 /* empty */
2005 | rule_error_recovery error 2008 | rule_error_recovery error
2006 | rule_error_recovery invalid_square_brackets_block 2009 | rule_error_recovery invalid_square_brackets_block
2007 | rule_error_recovery invalid_parentheses_block 2010 | rule_error_recovery invalid_parentheses_block
2008 ; 2011 ;
2009 2012
2010 %% 2013 %%
2011 2014
OLDNEW
« no previous file with comments | « LayoutTests/fast/media/media-query-list-syntax-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698