Bug 1425294 - Use a hardcoded background color for mozscreenshots so the APNG will not have transparency. r=MattN

MozReview-Commit-ID: CUwTQdXPBg6

--HG--
extra : rebase_source : ad8fccd68da35132e93052148cf289a83ca13d1c
This commit is contained in:
Jared Wein 2017-12-14 13:42:56 -06:00
parent 92439c6859
commit 883db571f5
6 changed files with 3 additions and 0 deletions

View File

@ -378,6 +378,9 @@ this.TestRunner = {
canvas.height = bounds.height;
const ctx = canvas.getContext("2d");
ctx.fillStyle = "hotpink";
ctx.fillRect(0, 0, bounds.width, bounds.height);
for (const rect of rects) {
rect.left = Math.max(0, rect.left);
rect.right = Math.min(img.naturalWidth, rect.right);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB