[Cairo] Incorrect rendering for 135-deg skews
authoryoshiaki.jitsukawa@sony.com <yoshiaki.jitsukawa@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Oct 2018 16:50:33 +0000 (16:50 +0000)
committeryoshiaki.jitsukawa@sony.com <yoshiaki.jitsukawa@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Oct 2018 16:50:33 +0000 (16:50 +0000)
commit480619670c2beb045f5c4c71c816264c7769cebb
tree1f5f5fe60ee9fc3c9f66acd83af828c4b9ae0fd0
parent3a2a9e2d0585be219560954c8c3de8df7171d851
[Cairo] Incorrect rendering for 135-deg skews
https://bugs.webkit.org/show_bug.cgi?id=190513

Source/WebCore:

Compensation value to zero the the translation components
of the transformation matrix is incorrect if the matrix
has a shear factor.

Reviewed by Žan Doberšek.

Tests: fast/transforms/skew-x-135deg-with-gradient.html
       fast/transforms/skew-y-135deg-with-gradient.html

* platform/graphics/cairo/CairoUtilities.cpp:
(WebCore::drawPatternToCairoContext):

LayoutTests:

Reviewed by Žan Doberšek.

* fast/transforms/skew-x-135deg-with-gradient-expected.html: Added.
* fast/transforms/skew-x-135deg-with-gradient.html: Added.
* fast/transforms/skew-y-135deg-with-gradient-expected.html: Added.
* fast/transforms/skew-y-135deg-with-gradient.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/transforms/skew-x-135deg-with-gradient-expected.html [new file with mode: 0644]
LayoutTests/fast/transforms/skew-x-135deg-with-gradient.html [new file with mode: 0644]
LayoutTests/fast/transforms/skew-y-135deg-with-gradient-expected.html [new file with mode: 0644]
LayoutTests/fast/transforms/skew-y-135deg-with-gradient.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp