| Index: Source/core/svg/SVGAngleTearOff.cpp
|
| diff --git a/Source/core/svg/SVGAngleTearOff.cpp b/Source/core/svg/SVGAngleTearOff.cpp
|
| index 8a5f832ace8e6ee456c1aa82d5aebe6f3d21c665..1ddc013cad4d1d1cdac4a680b37b1f12d723ab23 100644
|
| --- a/Source/core/svg/SVGAngleTearOff.cpp
|
| +++ b/Source/core/svg/SVGAngleTearOff.cpp
|
| @@ -75,7 +75,7 @@ void SVGAngleTearOff::newValueSpecifiedUnits(unsigned short unitType, float valu
|
| return;
|
| }
|
|
|
| - if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN || unitType > SVGAngle::SVG_ANGLETYPE_GRAD) {
|
| + if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN || unitType > SVGAngle::SVG_ANGLETYPE_TURN) {
|
| exceptionState.throwDOMException(NotSupportedError, "Cannot set value with unknown or invalid units (" + String::number(unitType) + ").");
|
| return;
|
| }
|
| @@ -91,7 +91,7 @@ void SVGAngleTearOff::convertToSpecifiedUnits(unsigned short unitType, Exception
|
| return;
|
| }
|
|
|
| - if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN || unitType > SVGAngle::SVG_ANGLETYPE_GRAD) {
|
| + if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN || unitType > SVGAngle::SVG_ANGLETYPE_TURN) {
|
| exceptionState.throwDOMException(NotSupportedError, "Cannot convert to unknown or invalid units (" + String::number(unitType) + ").");
|
| return;
|
| }
|
|
|