mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 632469 - Handle non-finite values for clearRect per spec; r=smaug
This commit is contained in:
parent
152132c477
commit
d5bdb8e8be
@ -1979,7 +1979,7 @@ NS_IMETHODIMP
|
||||
nsCanvasRenderingContext2D::ClearRect(float x, float y, float w, float h)
|
||||
{
|
||||
if (!FloatValidate(x,y,w,h))
|
||||
return NS_ERROR_DOM_SYNTAX_ERR;
|
||||
return NS_OK;
|
||||
|
||||
PathAutoSaveRestore pathSR(this);
|
||||
gfxContextAutoSaveRestore autoSR(mThebes);
|
||||
|
@ -245,7 +245,7 @@ isPixel(ctx, 50,25, 0,255,0,255, 0);
|
||||
} catch (e) {
|
||||
_thrown_outer = true;
|
||||
}
|
||||
todo(!_thrown_outer, 'should not throw exception');
|
||||
ok(!_thrown_outer, 'should not throw exception');
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user