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

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

Issue 28333004: Move even more data from .data to .rodata section (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | « no previous file | Source/core/inspector/WorkerDebuggerAgent.h » ('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 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 end = end->tagHistory(); 1218 end = end->tagHistory();
1219 end->setRelation($2); 1219 end->setRelation($2);
1220 if ($1->isContentPseudoElement()) 1220 if ($1->isContentPseudoElement())
1221 end->setRelationIsAffectedByPseudoContent(); 1221 end->setRelationIsAffectedByPseudoContent();
1222 end->setTagHistory(parser->sinkFloatingSelector($1)); 1222 end->setTagHistory(parser->sinkFloatingSelector($1));
1223 } 1223 }
1224 ; 1224 ;
1225 1225
1226 namespace_selector: 1226 namespace_selector:
1227 /* empty */ '|' { $$.clear(); } 1227 /* empty */ '|' { $$.clear(); }
1228 | '*' '|' { static LChar star = '*'; $$.init(&star, 1); } 1228 | '*' '|' { static const LChar star = '*'; $$.init(&star, 1); }
1229 | IDENT '|' 1229 | IDENT '|'
1230 ; 1230 ;
1231 1231
1232 simple_selector: 1232 simple_selector:
1233 element_name { 1233 element_name {
1234 $$ = parser->createFloatingSelectorWithTagName(QualifiedName(nullAtom, $ 1, parser->m_defaultNamespace)); 1234 $$ = parser->createFloatingSelectorWithTagName(QualifiedName(nullAtom, $ 1, parser->m_defaultNamespace));
1235 } 1235 }
1236 | element_name specifier_list { 1236 | element_name specifier_list {
1237 $$ = parser->rewriteSpecifiersWithElementName(nullAtom, $1, $2); 1237 $$ = parser->rewriteSpecifiersWithElementName(nullAtom, $1, $2);
1238 if (!$$) 1238 if (!$$)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 } 1271 }
1272 ; 1272 ;
1273 1273
1274 element_name: 1274 element_name:
1275 IDENT { 1275 IDENT {
1276 if (parser->m_context.isHTMLDocument) 1276 if (parser->m_context.isHTMLDocument)
1277 parser->tokenToLowerCase($1); 1277 parser->tokenToLowerCase($1);
1278 $$ = $1; 1278 $$ = $1;
1279 } 1279 }
1280 | '*' { 1280 | '*' {
1281 static LChar star = '*'; 1281 static const LChar star = '*';
1282 $$.init(&star, 1); 1282 $$.init(&star, 1);
1283 } 1283 }
1284 ; 1284 ;
1285 1285
1286 specifier_list: 1286 specifier_list:
1287 specifier 1287 specifier
1288 | specifier_list specifier { 1288 | specifier_list specifier {
1289 $$ = parser->rewriteSpecifiers($1, $2); 1289 $$ = parser->rewriteSpecifiers($1, $2);
1290 } 1290 }
1291 ; 1291 ;
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 1934
1935 rule_error_recovery: 1935 rule_error_recovery:
1936 /* empty */ 1936 /* empty */
1937 | rule_error_recovery error 1937 | rule_error_recovery error
1938 | rule_error_recovery invalid_square_brackets_block 1938 | rule_error_recovery invalid_square_brackets_block
1939 | rule_error_recovery invalid_parentheses_block 1939 | rule_error_recovery invalid_parentheses_block
1940 ; 1940 ;
1941 1941
1942 %% 1942 %%
1943 1943
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/WorkerDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698