Bug 1422676 - Fix small CSS error in test_2d.fill.pattern.imageSmoothingEnabled.html. r=TYLin

MozReview-Commit-ID: JEBm4hNrnfw

--HG--
extra : rebase_source : a6722cd4add5d3a55f5da8f8f12ea779d8c2d628
This commit is contained in:
Cameron McCormack 2017-12-04 14:57:53 +08:00
parent 8f329d4896
commit 98bddd976d

View File

@ -45,7 +45,6 @@ img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAA
img.onload = function () {
ctx.imageSmoothingEnabled = false;
ctx.save();
ctx.fillStyle = "rgb(127, 127, 127);";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.scale(16, 16);
ctx.fillStyle = ctx.createPattern(img, 'no-repeat');
@ -60,7 +59,6 @@ img.onload = function () {
ctx.imageSmoothingEnabled = true;
ctx.save();
ctx.fillStyle = "rgb(127, 127, 127);";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.scale(16, 16);
ctx.fillStyle = ctx.createPattern(img, 'no-repeat');