OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
3 * | 3 * |
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 514 |
515 TransformationMatrix SVGChar::characterTransform() const | 515 TransformationMatrix SVGChar::characterTransform() const |
516 { | 516 { |
517 TransformationMatrix ctm; | 517 TransformationMatrix ctm; |
518 | 518 |
519 // Rotate character around angle, and possibly scale. | 519 // Rotate character around angle, and possibly scale. |
520 ctm.translate(x, y); | 520 ctm.translate(x, y); |
521 ctm.rotate(angle); | 521 ctm.rotate(angle); |
522 | 522 |
523 if (pathData) { | 523 if (pathData) { |
524 ctm.scale(pathData->xScale, pathData->yScale); | 524 ctm.scaleNonUniform(pathData->xScale, pathData->yScale); |
525 ctm.translate(pathData->xShift, pathData->yShift); | 525 ctm.translate(pathData->xShift, pathData->yShift); |
526 ctm.rotate(pathData->orientationAngle); | 526 ctm.rotate(pathData->orientationAngle); |
527 } | 527 } |
528 | 528 |
529 ctm.translate(orientationShiftX - x, orientationShiftY - y); | 529 ctm.translate(orientationShiftX - x, orientationShiftY - y); |
530 return ctm; | 530 return ctm; |
531 } | 531 } |
532 | 532 |
533 } // namespace WebCore | 533 } // namespace WebCore |
534 | 534 |
535 #endif // ENABLE(SVG) | 535 #endif // ENABLE(SVG) |
OLD | NEW |