mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 05:05:29 +00:00
Bug 632502 - Handle non-finite values for quadraticCurveTo per spec; r=roc
This commit is contained in:
parent
42d1eb15da
commit
b2a157a4c3
@ -2100,7 +2100,7 @@ NS_IMETHODIMP
|
||||
nsCanvasRenderingContext2D::QuadraticCurveTo(float cpx, float cpy, float x, float y)
|
||||
{
|
||||
if (!FloatValidate(cpx,cpy,x,y))
|
||||
return NS_ERROR_DOM_SYNTAX_ERR;
|
||||
return NS_OK;
|
||||
|
||||
// we will always have a current point, since beginPath forces
|
||||
// a moveto(0,0)
|
||||
|
@ -13441,7 +13441,7 @@ isPixel(ctx, 90,45, 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