| Index: Source/core/svg/SVGEnumeration.cpp
|
| diff --git a/Source/core/svg/SVGEnumeration.cpp b/Source/core/svg/SVGEnumeration.cpp
|
| index 2838406004c5eb33eed9daec3ca61bda19050b96..88f7d93a86c97b47a89dc0db9d482f4708b3db8d 100644
|
| --- a/Source/core/svg/SVGEnumeration.cpp
|
| +++ b/Source/core/svg/SVGEnumeration.cpp
|
| @@ -66,7 +66,7 @@ String SVGEnumerationBase::valueAsString() const
|
| return it->second;
|
| }
|
|
|
| - ASSERT(m_value < maxEnumValue());
|
| + ASSERT(m_value < maxInternalEnumValue());
|
| return emptyString();
|
| }
|
|
|
| @@ -77,8 +77,8 @@ void SVGEnumerationBase::setValue(unsigned short value, ExceptionState& exceptio
|
| return;
|
| }
|
|
|
| - if (value > maxEnumValue()) {
|
| - exceptionState.throwTypeError("The enumeration value provided (" + String::number(value) + ") is larger than the largest allowed value (" + String::number(maxEnumValue()) + ").");
|
| + if (value > maxExposedEnumValue()) {
|
| + exceptionState.throwTypeError("The enumeration value provided (" + String::number(value) + ") is larger than the largest allowed value (" + String::number(maxExposedEnumValue()) + ").");
|
| return;
|
| }
|
|
|
|
|