| 616 | } |
| 617 | |
| 618 | bool SVGAttributeParser::parseMatrixToken(Matrix* matrix) { |
| 619 | return this->parseParenthesized( |
| 620 | "matrix", |
| 621 | [this](Matrix* m) -> bool { |
| 622 | float scalars[6]; |
| 623 | for (int i = 0; i < 6; ++i) { |
| 624 | if (!this->parseScalarToken(scalars + i) || (i <= 4 && !this->parseSepToken())) { |
| 625 | return false; |
| 626 | } |
| 627 | } |
| 628 | |
| 629 | m->setAll(scalars[0], scalars[2], scalars[4], scalars[1], scalars[3], scalars[5]); |
| 630 | return true; |
| 631 | }, |
| 632 | matrix); |
| 633 | } |
| 634 | |
| 635 | bool SVGAttributeParser::parseTranslateToken(Matrix* matrix) { |
| 636 | return this->parseParenthesized( |
no test coverage detected