Index: Source/core/css/CSSParser-in.cpp |
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp |
index 44a476d737c191c5911bb3c0984fb6a8cd8be6ca..3b6194167a2ccc254ae1486abea5c60950afc3e9 100644 |
--- a/Source/core/css/CSSParser-in.cpp |
+++ b/Source/core/css/CSSParser-in.cpp |
@@ -9136,11 +9136,13 @@ PassRefPtr<CSSValue> CSSParser::parseTextIndent() |
} |
} |
-#if ENABLE(CSS3_TEXT) |
+ if (!RuntimeEnabledFeatures::css3TextEnabled()) |
+ return 0; |
+ |
// The case where text-indent has only <length>(or <percentage>) value |
- // is handled above if statement even though CSS3_TEXT is enabled. |
+ // is handled above if statement even though css3TextEnabled() returns true. |
- // [ [ <length> | <percentage> ] && -webkit-each-line ] | inherit |
+ // [ [ <length> | <percentage> ] && each-line ] | inherit |
if (m_valueList->size() != 2) |
return 0; |
@@ -9148,20 +9150,19 @@ PassRefPtr<CSSValue> CSSParser::parseTextIndent() |
CSSParserValue* secondValue = m_valueList->next(); |
CSSParserValue* lengthOrPercentageValue = 0; |
- // [ <length> | <percentage> ] -webkit-each-line |
- if (validUnit(firstValue, FLength | FPercent) && secondValue->id == CSSValueWebkitEachLine) |
+ // [ <length> | <percentage> ] each-line |
+ if (validUnit(firstValue, FLength | FPercent) && secondValue->id == CSSValueEachLine) |
lengthOrPercentageValue = firstValue; |
- // -webkit-each-line [ <length> | <percentage> ] |
- else if (firstValue->id == CSSValueWebkitEachLine && validUnit(secondValue, FLength | FPercent)) |
+ // each-line [ <length> | <percentage> ] |
+ else if (firstValue->id == CSSValueEachLine && validUnit(secondValue, FLength | FPercent)) |
lengthOrPercentageValue = secondValue; |
if (lengthOrPercentageValue) { |
list->append(createPrimitiveNumericValue(lengthOrPercentageValue)); |
- list->append(cssValuePool().createIdentifierValue(CSSValueWebkitEachLine)); |
+ list->append(cssValuePool().createIdentifierValue(CSSValueEachLine)); |
m_valueList->next(); |
return list.release(); |
} |
-#endif |
return 0; |
} |