Bug 632502 - Handle non-finite values for quadraticCurveTo per spec; r=roc

This commit is contained in:
Ms2ger 2011-04-01 15:31:35 -04:00
parent 42d1eb15da
commit b2a157a4c3
2 changed files with 2 additions and 2 deletions

View File

@ -2100,7 +2100,7 @@ NS_IMETHODIMP
nsCanvasRenderingContext2D::QuadraticCurveTo(float cpx, float cpy, float x, float y) nsCanvasRenderingContext2D::QuadraticCurveTo(float cpx, float cpy, float x, float y)
{ {
if (!FloatValidate(cpx,cpy,x,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 // we will always have a current point, since beginPath forces
// a moveto(0,0) // a moveto(0,0)

View File

@ -13441,7 +13441,7 @@ isPixel(ctx, 90,45, 0,255,0,255, 0);
} catch (e) { } catch (e) {
_thrown_outer = true; _thrown_outer = true;
} }
todo(!_thrown_outer, 'should not throw exception'); ok(!_thrown_outer, 'should not throw exception');
} }