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

Side by Side Diff: third_party/WebKit/Source/core/xml/XPathGrammar.y

Issue 2627023004: Migrate WTF::Vector::append() to ::push_back() in XPathGrammar (Closed)
Patch Set: Created 3 years, 11 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 | 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 2005 Frerich Raabe <raabe@kde.org> 2 * Copyright 2005 Frerich Raabe <raabe@kde.org>
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 $$ = 0; 268 $$ = 0;
269 } 269 }
270 | 270 |
271 PredicateList 271 PredicateList
272 ; 272 ;
273 273
274 PredicateList: 274 PredicateList:
275 Predicate 275 Predicate
276 { 276 {
277 $$ = new blink::HeapVector<blink::Member<Predicate>>; 277 $$ = new blink::HeapVector<blink::Member<Predicate>>;
278 $$->append(new Predicate($1)); 278 $$->push_back(new Predicate($1));
279 } 279 }
280 | 280 |
281 PredicateList Predicate 281 PredicateList Predicate
282 { 282 {
283 $$->append(new Predicate($2)); 283 $$->push_back(new Predicate($2));
284 } 284 }
285 ; 285 ;
286 286
287 Predicate: 287 Predicate:
288 '[' Expr ']' 288 '[' Expr ']'
289 { 289 {
290 $$ = $2; 290 $$ = $2;
291 } 291 }
292 ; 292 ;
293 293
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 if (!$$) 352 if (!$$)
353 YYABORT; 353 YYABORT;
354 parser->deleteString($1); 354 parser->deleteString($1);
355 } 355 }
356 ; 356 ;
357 357
358 ArgumentList: 358 ArgumentList:
359 Argument 359 Argument
360 { 360 {
361 $$ = new blink::HeapVector<blink::Member<Expression>>; 361 $$ = new blink::HeapVector<blink::Member<Expression>>;
362 $$->append($1); 362 $$->push_back($1);
363 } 363 }
364 | 364 |
365 ArgumentList ',' Argument 365 ArgumentList ',' Argument
366 { 366 {
367 $$->append($3); 367 $$->push_back($3);
368 } 368 }
369 ; 369 ;
370 370
371 Argument: 371 Argument:
372 Expr 372 Expr
373 ; 373 ;
374 374
375 UnionExpr: 375 UnionExpr:
376 PathExpr 376 PathExpr
377 | 377 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 UnionExpr 477 UnionExpr
478 | 478 |
479 MINUS UnaryExpr 479 MINUS UnaryExpr
480 { 480 {
481 $$ = new Negative; 481 $$ = new Negative;
482 $$->addSubExpression($2); 482 $$->addSubExpression($2);
483 } 483 }
484 ; 484 ;
485 485
486 %% 486 %%
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698