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

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

Issue 16208004: No need to store invalid media queries. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « no previous file | Source/core/css/MediaList.cpp » ('j') | 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 } 559 }
560 | ':' maybe_space expr { 560 | ':' maybe_space expr {
561 $$ = $3; 561 $$ = $3;
562 } 562 }
563 ; 563 ;
564 564
565 media_query_exp: 565 media_query_exp:
566 '(' maybe_space IDENT maybe_space maybe_media_value closing_parenthesis mayb e_space { 566 '(' maybe_space IDENT maybe_space maybe_media_value closing_parenthesis mayb e_space {
567 parser->tokenToLowerCase($3); 567 parser->tokenToLowerCase($3);
568 $$ = parser->createFloatingMediaQueryExp($3, $5); 568 $$ = parser->createFloatingMediaQueryExp($3, $5);
569 if (!$$)
570 YYERROR;
569 } 571 }
570 | '(' error error_recovery closing_parenthesis { 572 | '(' error error_recovery closing_parenthesis {
571 YYERROR; 573 YYERROR;
572 } 574 }
573 ; 575 ;
574 576
575 media_query_exp_list: 577 media_query_exp_list:
576 media_query_exp { 578 media_query_exp {
577 $$ = parser->createFloatingMediaQueryExpList(); 579 $$ = parser->createFloatingMediaQueryExpList();
578 $$->append(parser->sinkFloatingMediaQueryExp($1)); 580 $$->append(parser->sinkFloatingMediaQueryExp($1));
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 1958
1957 rule_error_recovery: 1959 rule_error_recovery:
1958 /* empty */ 1960 /* empty */
1959 | rule_error_recovery error 1961 | rule_error_recovery error
1960 | rule_error_recovery invalid_square_brackets_block 1962 | rule_error_recovery invalid_square_brackets_block
1961 | rule_error_recovery invalid_parentheses_block 1963 | rule_error_recovery invalid_parentheses_block
1962 ; 1964 ;
1963 1965
1964 %% 1966 %%
1965 1967
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698