| OLD | NEW |
| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 LocationPath | 384 LocationPath |
| 385 { | 385 { |
| 386 $$ = $1; | 386 $$ = $1; |
| 387 } | 387 } |
| 388 | | 388 | |
| 389 FilterExpr | 389 FilterExpr |
| 390 | | 390 | |
| 391 FilterExpr '/' RelativeLocationPath | 391 FilterExpr '/' RelativeLocationPath |
| 392 { | 392 { |
| 393 $3->setAbsolute(true); | 393 $3->setAbsolute(true); |
| 394 $$ = new Path($1, $3); | 394 $$ = new blink::XPath::Path($1, $3); |
| 395 } | 395 } |
| 396 | | 396 | |
| 397 FilterExpr DescendantOrSelf RelativeLocationPath | 397 FilterExpr DescendantOrSelf RelativeLocationPath |
| 398 { | 398 { |
| 399 $3->insertFirstStep($2); | 399 $3->insertFirstStep($2); |
| 400 $3->setAbsolute(true); | 400 $3->setAbsolute(true); |
| 401 $$ = new Path($1, $3); | 401 $$ = new blink::XPath::Path($1, $3); |
| 402 } | 402 } |
| 403 ; | 403 ; |
| 404 | 404 |
| 405 FilterExpr: | 405 FilterExpr: |
| 406 PrimaryExpr | 406 PrimaryExpr |
| 407 | | 407 | |
| 408 PrimaryExpr PredicateList | 408 PrimaryExpr PredicateList |
| 409 { | 409 { |
| 410 $$ = new Filter($1, *$2); | 410 $$ = new blink::XPath::Filter($1, *$2); |
| 411 } | 411 } |
| 412 ; | 412 ; |
| 413 | 413 |
| 414 OrExpr: | 414 OrExpr: |
| 415 AndExpr | 415 AndExpr |
| 416 | | 416 | |
| 417 OrExpr OR AndExpr | 417 OrExpr OR AndExpr |
| 418 { | 418 { |
| 419 $$ = new LogicalOp(LogicalOp::OP_Or, $1, $3); | 419 $$ = new LogicalOp(LogicalOp::OP_Or, $1, $3); |
| 420 } | 420 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 UnionExpr | 474 UnionExpr |
| 475 | | 475 | |
| 476 MINUS UnaryExpr | 476 MINUS UnaryExpr |
| 477 { | 477 { |
| 478 $$ = new Negative; | 478 $$ = new Negative; |
| 479 $$->addSubExpression($2); | 479 $$->addSubExpression($2); |
| 480 } | 480 } |
| 481 ; | 481 ; |
| 482 | 482 |
| 483 %% | 483 %% |
| OLD | NEW |