| Index: Source/core/css/CSSPrimitiveValue.cpp
|
| diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp
|
| index 3e6391ccf09162ce82337d19da2c9fcebc353d7f..4c526924c7f2e080c91e2bfdcf85d4efd262d444 100644
|
| --- a/Source/core/css/CSSPrimitiveValue.cpp
|
| +++ b/Source/core/css/CSSPrimitiveValue.cpp
|
| @@ -705,8 +705,8 @@ double CSSPrimitiveValue::getDoubleValue() const
|
|
|
| CSSPrimitiveValue::UnitTypes CSSPrimitiveValue::canonicalUnitTypeForCategory(UnitCategory category)
|
| {
|
| - // The canonical unit type is chosen according to the way BisonCSSParser::validUnit() chooses the default unit
|
| - // in each category (based on unitflags).
|
| + // The canonical unit type is chosen according to the way CSSParser::validUnit()
|
| + // chooses the default unit in each category (based on unitflags).
|
| switch (category) {
|
| case UNumber:
|
| return CSS_NUMBER;
|
| @@ -759,7 +759,8 @@ bool CSSPrimitiveValue::getDoubleValueInternal(UnitTypes requestedUnitType, doub
|
| }
|
|
|
| if (sourceUnitType == CSS_NUMBER) {
|
| - // We interpret conversion from CSS_NUMBER in the same way as BisonCSSParser::validUnit() while using non-strict mode.
|
| + // We interpret conversion from CSS_NUMBER in the same way as
|
| + // CSSParser::validUnit() while using non-strict mode.
|
| sourceUnitType = canonicalUnitTypeForCategory(targetCategory);
|
| if (sourceUnitType == CSS_UNKNOWN)
|
| return false;
|
|
|