mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 22:07:41 +00:00
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:
parent
8f329d4896
commit
98bddd976d
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user