Reviewed by Oliver.
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2007 19:35:07 +0000 (19:35 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2007 19:35:07 +0000 (19:35 +0000)
        http://bugs.webkit.org/show_bug.cgi?id=15071
        [cairo] SVG skews are incorrect

        Fix Cairo implementation of AffineTransform::shear so that shearing is
        done in the correct direction.

        * platform/graphics/cairo/AffineTransformCairo.cpp:
        (WebCore::AffineTransform::shear):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25214 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/graphics/cairo/AffineTransformCairo.cpp

index baed72ce03dccfd8de66b8bdd11953220bfe8ba0..108d466f7619d5e5096963db4223540b27f1fddf 100644 (file)
@@ -1,3 +1,16 @@
+2007-08-24  George Wright  <george.wright@collabora.co.uk>
+
+        Reviewed by Oliver.
+
+        http://bugs.webkit.org/show_bug.cgi?id=15071
+        [cairo] SVG skews are incorrect
+
+        Fix Cairo implementation of AffineTransform::shear so that shearing is
+        done in the correct direction.
+
+        * platform/graphics/cairo/AffineTransformCairo.cpp:
+        (WebCore::AffineTransform::shear):
+
 2007-08-23  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Steve.
index f27b5ec14dd97e01a1a0038996f817316b966948..6ece69f3b5c4b908424b7d9ef7252415dcc05eb3 100644 (file)
@@ -221,7 +221,7 @@ AffineTransform &AffineTransform::translate(double tx, double ty)
 AffineTransform &AffineTransform::shear(double sx, double sy)
 {
     cairo_matrix_t shear;
-    cairo_matrix_init(&shear, 1, sx, sy, 1, 0, 0);
+    cairo_matrix_init(&shear, 1, sy, sx, 1, 0, 0);
 
     cairo_matrix_t result;
     cairo_matrix_multiply(&result, &shear, &m_transform);