зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 950963c8a8e1 (bug 1425294) for failing ss in browser/tools/mozscreenshots/browser_screenshots_cropping.js r=backout on a CLOSED TREE
This commit is contained in:
Родитель
0fb60e623e
Коммит
31d6374e80
|
@ -378,9 +378,6 @@ 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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче