Bug 632486 - Handle non-finite values for bezierCurveTo per spec; r=jst

This commit is contained in:
Ms2ger 2011-05-26 10:06:32 +02:00
Родитель 362ac2b289
Коммит 7fc5d4db0e
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2097,7 +2097,7 @@ nsCanvasRenderingContext2D::BezierCurveTo(float cp1x, float cp1y,
float x, float y)
{
if (!FloatValidate(cp1x,cp1y,cp2x,cp2y,x,y))
return NS_ERROR_DOM_SYNTAX_ERR;
return NS_OK;
mHasPath = PR_TRUE;
mThebes->CurveTo(gfxPoint(cp1x, cp1y),

Просмотреть файл

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