зеркало из https://github.com/mozilla/gecko-dev.git
Bug 632486 - Handle non-finite values for bezierCurveTo per spec; r=jst
This commit is contained in:
Родитель
362ac2b289
Коммит
7fc5d4db0e
|
@ -2097,7 +2097,7 @@ nsCanvasRenderingContext2D::BezierCurveTo(float cp1x, float cp1y,
|
||||||
float x, float y)
|
float x, float y)
|
||||||
{
|
{
|
||||||
if (!FloatValidate(cp1x,cp1y,cp2x,cp2y,x,y))
|
if (!FloatValidate(cp1x,cp1y,cp2x,cp2y,x,y))
|
||||||
return NS_ERROR_DOM_SYNTAX_ERR;
|
return NS_OK;
|
||||||
|
|
||||||
mHasPath = PR_TRUE;
|
mHasPath = PR_TRUE;
|
||||||
mThebes->CurveTo(gfxPoint(cp1x, cp1y),
|
mThebes->CurveTo(gfxPoint(cp1x, cp1y),
|
||||||
|
|
|
@ -12393,7 +12393,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');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче