Index: Source/core/css/CSSPrimitiveValue.cpp |
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp |
index f813b4ee57a4d98e55aa48906a02edc1557eb9c8..4a27e280c0df5ece54c0c0832213ccb6bf759806 100644 |
--- a/Source/core/css/CSSPrimitiveValue.cpp |
+++ b/Source/core/css/CSSPrimitiveValue.cpp |
@@ -639,7 +639,7 @@ double CSSPrimitiveValue::getDoubleValue(unsigned short unitType, ExceptionCode& |
double result = 0; |
bool success = getDoubleValueInternal(static_cast<UnitTypes>(unitType), &result); |
if (!success) { |
- ec = INVALID_ACCESS_ERR; |
+ ec = InvalidAccessError; |
return 0.0; |
} |
@@ -757,7 +757,7 @@ String CSSPrimitiveValue::getStringValue(ExceptionCode& ec) const |
case CSS_PROPERTY_ID: |
return propertyName(m_value.propertyID); |
default: |
- ec = INVALID_ACCESS_ERR; |
+ ec = InvalidAccessError; |
break; |
} |
@@ -787,7 +787,7 @@ Counter* CSSPrimitiveValue::getCounterValue(ExceptionCode& ec) const |
{ |
ec = 0; |
if (m_primitiveUnitType != CSS_COUNTER) { |
- ec = INVALID_ACCESS_ERR; |
+ ec = InvalidAccessError; |
return 0; |
} |
@@ -798,7 +798,7 @@ Rect* CSSPrimitiveValue::getRectValue(ExceptionCode& ec) const |
{ |
ec = 0; |
if (m_primitiveUnitType != CSS_RECT) { |
- ec = INVALID_ACCESS_ERR; |
+ ec = InvalidAccessError; |
return 0; |
} |
@@ -809,7 +809,7 @@ Quad* CSSPrimitiveValue::getQuadValue(ExceptionCode& ec) const |
{ |
ec = 0; |
if (m_primitiveUnitType != CSS_QUAD) { |
- ec = INVALID_ACCESS_ERR; |
+ ec = InvalidAccessError; |
return 0; |
} |
@@ -820,7 +820,7 @@ PassRefPtr<RGBColor> CSSPrimitiveValue::getRGBColorValue(ExceptionCode& ec) cons |
{ |
ec = 0; |
if (m_primitiveUnitType != CSS_RGBCOLOR) { |
- ec = INVALID_ACCESS_ERR; |
+ ec = InvalidAccessError; |
return 0; |
} |
@@ -832,7 +832,7 @@ Pair* CSSPrimitiveValue::getPairValue(ExceptionCode& ec) const |
{ |
ec = 0; |
if (m_primitiveUnitType != CSS_PAIR) { |
- ec = INVALID_ACCESS_ERR; |
+ ec = InvalidAccessError; |
return 0; |
} |