Bug 1068230 - Don't use the gfxContext transform in intermediate surface, r=seth

This commit is contained in:
Michael Wu 2014-09-18 15:53:02 -04:00
parent 3022f3b91f
commit 4570bdad8c
6 changed files with 28 additions and 1 deletions

View File

@ -452,7 +452,7 @@ imgFrame::SurfaceForDrawing(bool aDoPadding,
} else {
SurfacePattern pattern(aSurface,
ExtendMode::REPEAT,
ToMatrix(aContext->CurrentMatrix()));
Matrix::Translation(mDecoded.x, mDecoded.y));
target->FillRect(ToRect(aRegion.Intersect(available).Rect()), pattern);
}

View File

@ -22,6 +22,9 @@ skip-if(B2G) random-if(Android) == test_bug641198.html animation2a-finalframe.gi
# Bug 1062886: a gif with a single color and an offset
== one-color-offset.gif one-color-offset-ref.gif
# Bug 1068230
== tile-transform.html tile-transform-ref.html
# webcam-simulacrum.mgif is a hand-edited file containing red.gif and blue.gif,
# concatenated together with the relevant headers for
# multipart/x-mixed-replace. Specifically, with the headers in

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1068230
-->
<html>
<head>
<title>Intermediate surface should be transformed correctly when tiling an image</title>
</head>
<body>
<button style="margin: 10px; padding: 10px; border: none; background: url('tiletest-ref.png');"></button>
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1068230
-->
<html>
<head>
<title>Intermediate surface should be transformed correctly when tiling an image</title>
</head>
<body>
<button style="margin: 10px; padding: 10px; border: none; background: url('tiletest.gif');"></button>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B