mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 430465. Don't round source coordinates in the tiled-image-drawing path. r=vlad,a=beltzner
This commit is contained in:
parent
c6a14440fa
commit
914869aff7
@ -771,12 +771,8 @@ nsThebesImage::ThebesDrawTile(gfxContext *thebesContext,
|
||||
}
|
||||
|
||||
gfxMatrix patMat;
|
||||
gfxPoint p0;
|
||||
|
||||
p0.x = - floor(tmpOffset.x + 0.5);
|
||||
p0.y = - floor(tmpOffset.y + 0.5);
|
||||
patMat.Scale(scale, scale);
|
||||
patMat.Translate(p0);
|
||||
patMat.Translate(-tmpOffset);
|
||||
|
||||
gfxPattern pat(surface);
|
||||
pat.SetExtend(gfxPattern::EXTEND_REPEAT);
|
||||
|
16
layout/reftests/bugs/430465-1-ref.html
Normal file
16
layout/reftests/bugs/430465-1-ref.html
Normal file
@ -0,0 +1,16 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
div {
|
||||
background-position:-100.5px 0;
|
||||
height:10px;
|
||||
background-repeat: repeat-y;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAAKCAMAAADb5DWMAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAJUExURXe77v///+7u7hs01mEAAADMSURBVHjaYmAYBaOAQsAIAkx4AeMoGAUjGhCRP0ZLklFAKQAIoFE0CkYr9FEwCkYr9FEwDABAAI2iUTBaoY+CUTBaoY+CYQAAAmgUjYLRCn0UjILRCn0UDAMAEECjaBSMVuijYBSMVuijYBgAgAAaRaNgtEIfBaNgtEIfBcMAAATQKBoFoxX6KBgFoxX6KBgGACCARtEoGK3QR8EoGK3QR8EwAAABNIpGwWiFPgpGwWiFPgqGAQAIoFE0CkYr9FEwCkYr9FEwDABAgAEAmPQjKS0rod8AAAAASUVORK5CYII=');
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
15
layout/reftests/bugs/430465-1.html
Normal file
15
layout/reftests/bugs/430465-1.html
Normal file
@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
div {
|
||||
background-position:-100.5px 0;
|
||||
height:20px;
|
||||
background-repeat: repeat-y;
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAAKCAMAAADb5DWMAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAJUExURXe77v///+7u7hs01mEAAADMSURBVHjaYmAYBaOAQsAIAkx4AeMoGAUjGhCRP0ZLklFAKQAIoFE0CkYr9FEwCkYr9FEwDABAAI2iUTBaoY+CUTBaoY+CYQAAAmgUjYLRCn0UjILRCn0UDAMAEECjaBSMVuijYBSMVuijYBgAgAAaRaNgtEIfBaNgtEIfBcMAAATQKBoFoxX6KBgFoxX6KBgGACCARtEoGK3QR8EoGK3QR8EwAAABNIpGwWiFPgpGwWiFPgqGAQAIoFE0CkYr9FEwCkYr9FEwDABAgAEAmPQjKS0rod8AAAAASUVORK5CYII=');
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
@ -816,4 +816,4 @@ fails-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 424074-1-ref2.xul 424074-1-ref3.xul
|
||||
== 428521-1b.html 428521-1-ref.html
|
||||
== 428521-1c.html 428521-1-ref.html
|
||||
== 430412-1.html 430412-1-ref.html
|
||||
|
||||
== 430465-1.html 430465-1-ref.html== 430465-1.html 430465-1-ref.html== 430465-1.html 430465-1-ref.html== 430465-1.html 430465-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user