Bug 632515 - Handle non-finite values for transform per spec; r=roc

This commit is contained in:
Ms2ger 2011-04-01 15:31:35 -04:00
parent 52e0a6ab6d
commit 5580363e6a
2 changed files with 2 additions and 2 deletions

View File

@ -1440,7 +1440,7 @@ NS_IMETHODIMP
nsCanvasRenderingContext2D::Transform(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->Multiply(matrix);

View File

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