https://bugs.webkit.org/show_bug.cgi?id=79190
Reviewed by Dan Bernstein.
No new tests - plenty of current tests using setTransform.
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::setTransform):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108447
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-21 Matthew Delaney <mdelaney@apple.com>
+
+ 2D Canvas setTransform makes unnecessary matrix mults
+ https://bugs.webkit.org/show_bug.cgi?id=79190
+
+ Reviewed by Dan Bernstein.
+
+ No new tests - plenty of current tests using setTransform.
+
+ * html/canvas/CanvasRenderingContext2D.cpp:
+ (WebCore::CanvasRenderingContext2D::setTransform):
+
2012-02-21 MORITA Hajime <morrita@google.com>
INPUT_SPEECH should be implemented as a PageSupplement.
AffineTransform ctm = state().m_transform;
if (!ctm.isInvertible())
return;
- c->concatCTM(c->getCTM().inverse());
- c->concatCTM(canvas()->baseTransform());
- state().m_transform = ctm.inverse() * state().m_transform;
+ c->setCTM(canvas()->baseTransform());
+ state().m_transform = AffineTransform();
m_path.transform(ctm);
state().m_invertibleCTM = true;