mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 18:24:02 +00:00
Bug 1068230 - Don't use the gfxContext transform in intermediate surface, r=seth
This commit is contained in:
parent
3022f3b91f
commit
4570bdad8c
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
12
image/test/reftest/gif/tile-transform-ref.html
Normal file
12
image/test/reftest/gif/tile-transform-ref.html
Normal 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>
|
12
image/test/reftest/gif/tile-transform.html
Normal file
12
image/test/reftest/gif/tile-transform.html
Normal 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>
|
BIN
image/test/reftest/gif/tiletest-ref.png
Normal file
BIN
image/test/reftest/gif/tiletest-ref.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 282 B |
BIN
image/test/reftest/gif/tiletest.gif
Normal file
BIN
image/test/reftest/gif/tiletest.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 156 B |
Loading…
x
Reference in New Issue
Block a user