Index: third_party/WebKit/Source/core/svg/SVGEnumeration.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGEnumeration.cpp b/third_party/WebKit/Source/core/svg/SVGEnumeration.cpp |
index d1a0ff975cd07e9c45310d1f17c0b6425e15b427..32b3e4f8a79f77583ea80ee0cf2d0f55997d49cd 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGEnumeration.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGEnumeration.cpp |
@@ -68,18 +68,8 @@ String SVGEnumerationBase::valueAsString() const |
return emptyString(); |
} |
-void SVGEnumerationBase::setValue(unsigned short value, ExceptionState& exceptionState) |
+void SVGEnumerationBase::setValue(unsigned short value) |
{ |
- if (!value) { |
- exceptionState.throwTypeError("The enumeration value provided is 0, which is not settable."); |
- return; |
- } |
- |
- if (value > maxExposedEnumValue()) { |
- exceptionState.throwTypeError("The enumeration value provided (" + String::number(value) + ") is larger than the largest allowed value (" + String::number(maxExposedEnumValue()) + ")."); |
- return; |
- } |
- |
m_value = value; |
notifyChange(); |
} |