Bug 632513 - Handle non-finite values for setTransform per spec; r=jst

This commit is contained in:
Ms2ger 2011-05-26 10:06:32 +02:00
parent 460ca55119
commit 56c39feb5c
2 changed files with 2 additions and 2 deletions

View File

@ -1430,7 +1430,7 @@ NS_IMETHODIMP
nsCanvasRenderingContext2D::SetTransform(float m11, float m12, float m21, float m22, float dx, float dy)
{
if (!FloatValidate(m11,m12,m21,m22,dx,dy))
return NS_ERROR_DOM_SYNTAX_ERR;
return NS_OK;
gfxMatrix matrix(m11, m12, m21, m22, dx, dy);
mThebes->SetMatrix(matrix);

View File

@ -18995,7 +18995,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');
}