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

Side by Side Diff: sky/engine/core/css/parser/CSSGrammar.y

Issue 815613002: Fix attribute selectors. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/css/SelectorChecker.cpp ('k') | sky/tests/lowlevel/query-selector.sky » ('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 2
3 /* 3 /*
4 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved.
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2012 Intel Corporation. All rights reserved. 8 * Copyright (C) 2012 Intel Corporation. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 $$ = parser->createFloatingSelector(); 797 $$ = parser->createFloatingSelector();
798 $$->setMatch(CSSSelector::Class); 798 $$->setMatch(CSSSelector::Class);
799 if (isQuirksModeBehavior(parser->m_context.mode())) 799 if (isQuirksModeBehavior(parser->m_context.mode()))
800 parser->tokenToLowerCase($2); 800 parser->tokenToLowerCase($2);
801 $$->setValue($2); 801 $$->setValue($2);
802 } 802 }
803 ; 803 ;
804 804
805 attr_name: 805 attr_name:
806 IDENT maybe_space { 806 IDENT maybe_space {
807 if (parser->m_context.isHTMLDocument())
808 parser->tokenToLowerCase($1);
809 $$ = $1; 807 $$ = $1;
810 } 808 }
811 ; 809 ;
812 810
813 attr_match_type: 811 attr_match_type:
814 IDENT maybe_space { 812 IDENT maybe_space {
815 CSSSelector::AttributeMatchType attrMatchType = CSSSelector::CaseSensiti ve; 813 CSSSelector::AttributeMatchType attrMatchType = CSSSelector::CaseSensiti ve;
816 if (!parser->parseAttributeMatchType(attrMatchType, $1)) 814 if (!parser->parseAttributeMatchType(attrMatchType, $1))
817 YYERROR; 815 YYERROR;
818 $$ = attrMatchType; 816 $$ = attrMatchType;
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 ; 1311 ;
1314 1312
1315 rule_error_recovery: 1313 rule_error_recovery:
1316 /* empty */ 1314 /* empty */
1317 | rule_error_recovery error 1315 | rule_error_recovery error
1318 | rule_error_recovery invalid_square_brackets_block 1316 | rule_error_recovery invalid_square_brackets_block
1319 | rule_error_recovery invalid_parentheses_block 1317 | rule_error_recovery invalid_parentheses_block
1320 ; 1318 ;
1321 1319
1322 %% 1320 %%
OLDNEW
« no previous file with comments | « sky/engine/core/css/SelectorChecker.cpp ('k') | sky/tests/lowlevel/query-selector.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698