mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 663190 - Calling strokeRect with zero width or height should do nothing; r=smaug
This commit is contained in:
parent
a6c4503b05
commit
d0671160d0
@ -2028,6 +2028,9 @@ nsCanvasRenderingContext2D::FillRect(float x, float y, float w, float h)
|
||||
NS_IMETHODIMP
|
||||
nsCanvasRenderingContext2D::StrokeRect(float x, float y, float w, float h)
|
||||
{
|
||||
if (w == 0.f && h == 0.f) {
|
||||
return NS_OK;
|
||||
}
|
||||
return DrawRect(gfxRect(x, y, w, h), STYLE_STROKE);
|
||||
}
|
||||
|
||||
|
@ -18395,7 +18395,7 @@ ctx.lineWidth = 250;
|
||||
ctx.lineCap = 'round';
|
||||
ctx.lineJoin = 'round';
|
||||
ctx.strokeRect(50, 25, 0, 0);
|
||||
todo_isPixel(ctx, 50,25, 0,0,0,0, 0);
|
||||
isPixel(ctx, 50,25, 0,0,0,0, 0);
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user