From c2d680378ba3de5e4144d5582b06352b6261dcd5 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 1 Feb 2013 12:55:27 +0100 Subject: [PATCH] Backout changeset 6a6ba49340e7 (bug 837039) for M1 orange on a CLOSED TREE. --- content/svg/content/src/SVGMatrix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/svg/content/src/SVGMatrix.cpp b/content/svg/content/src/SVGMatrix.cpp index 39dc0e6176ef..34a79fd7646a 100644 --- a/content/svg/content/src/SVGMatrix.cpp +++ b/content/svg/content/src/SVGMatrix.cpp @@ -130,7 +130,7 @@ already_AddRefed 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 matrix = new SVGMatrix(gfxMatrix(Matrix()).Invert()); @@ -172,7 +172,7 @@ already_AddRefed 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; }