mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout changeset 6a6ba49340e7 (bug 837039) for M1 orange on a CLOSED TREE.
This commit is contained in:
parent
116e0cedd6
commit
07e570450d
@ -130,7 +130,7 @@ already_AddRefed<SVGMatrix>
|
||||
SVGMatrix::Inverse(ErrorResult& rv)
|
||||
{
|
||||
if (Matrix().IsSingular()) {
|
||||
rv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
|
||||
rv.Throw(NS_ERROR_DOM_SVG_MATRIX_NOT_INVERTABLE);
|
||||
return nullptr;
|
||||
}
|
||||
nsRefPtr<SVGMatrix> matrix = new SVGMatrix(gfxMatrix(Matrix()).Invert());
|
||||
@ -172,7 +172,7 @@ already_AddRefed<SVGMatrix>
|
||||
SVGMatrix::RotateFromVector(float x, float y, ErrorResult& rv)
|
||||
{
|
||||
if (x == 0.0 || y == 0.0) {
|
||||
rv.Throw(NS_ERROR_DOM_INVALID_ACCESS_ERR);
|
||||
rv.Throw(NS_ERROR_RANGE_ERR);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -204,7 +204,7 @@ SVGMatrix::SkewX(float angle, ErrorResult& rv)
|
||||
{
|
||||
double ta = tan( angle*radPerDegree );
|
||||
if (!NS_finite(ta)) {
|
||||
rv.Throw(NS_ERROR_DOM_INVALID_ACCESS_ERR);
|
||||
rv.Throw(NS_ERROR_RANGE_ERR);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -221,7 +221,7 @@ SVGMatrix::SkewY(float angle, ErrorResult& rv)
|
||||
{
|
||||
double ta = tan( angle*radPerDegree );
|
||||
if (!NS_finite(ta)) {
|
||||
rv.Throw(NS_ERROR_DOM_INVALID_ACCESS_ERR);
|
||||
rv.Throw(NS_ERROR_RANGE_ERR);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user