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

Side by Side Diff: third_party/WebKit/WebCore/rendering/SVGCharacterLayoutInfo.cpp

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderView.cpp ('k') | third_party/WebKit/WebCore/rendering/SVGRootInlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698