Index: third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
index ed0bab93d0ca7006d76336e05df4913093ec5b7c..59a5ea9324dddc48850aae906154af6c2aa1cf93 100644 |
--- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
@@ -664,10 +664,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
validPrimitive = validUnit(value, FLength | FNonNeg | unitless); |
break; |
- case CSSPropertyTextIndent: |
- parsedValue = parseTextIndent(); |
- break; |
- |
case CSSPropertyPaddingTop: //// <padding-width> | inherit |
case CSSPropertyPaddingRight: // Which is defined as |
case CSSPropertyPaddingBottom: // <length> | <percentage> |
@@ -1357,6 +1353,7 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
case CSSPropertyBorderSpacing: |
case CSSPropertyCounterIncrement: |
case CSSPropertyCounterReset: |
+ case CSSPropertyTextIndent: |
validPrimitive = false; |
break; |
@@ -6434,45 +6431,6 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseTextEmphasisStyle() |
return nullptr; |
} |
-PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseTextIndent() |
-{ |
- RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); |
- |
- bool hasLengthOrPercentage = false; |
- bool hasEachLine = false; |
- bool hasHanging = false; |
- |
- for (CSSParserValue* value = m_valueList->current(); value; value = m_valueList->next()) { |
- // <length> | <percentage> | inherit when RuntimeEnabledFeatures::css3TextEnabled() returns false |
- if (!hasLengthOrPercentage && validUnit(value, FLength | FPercent | FUnitlessQuirk)) { |
- list->append(createPrimitiveNumericValue(value)); |
- hasLengthOrPercentage = true; |
- continue; |
- } |
- |
- // [ <length> | <percentage> ] && hanging? && each-line? | inherit |
- // when RuntimeEnabledFeatures::css3TextEnabled() returns true |
- if (RuntimeEnabledFeatures::css3TextEnabled()) { |
- if (!hasEachLine && value->id == CSSValueEachLine) { |
- list->append(cssValuePool().createIdentifierValue(CSSValueEachLine)); |
- hasEachLine = true; |
- continue; |
- } |
- if (!hasHanging && value->id == CSSValueHanging) { |
- list->append(cssValuePool().createIdentifierValue(CSSValueHanging)); |
- hasHanging = true; |
- continue; |
- } |
- } |
- return nullptr; |
- } |
- |
- if (!hasLengthOrPercentage) |
- return nullptr; |
- |
- return list.release(); |
-} |
- |
bool CSSPropertyParser::parseCalculation(CSSParserValue* value, ValueRange range) |
{ |
ASSERT(isCalculation(value)); |