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 e133907fda044f6f7959d4645ee95e99598d5a2f..a1e5a475a2ff5bc599721d5c2360c490a18202e6 100644 |
--- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
@@ -430,11 +430,9 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
case CSSPropertyWebkitBorderEndColor: |
case CSSPropertyWebkitBorderBeforeColor: |
case CSSPropertyWebkitBorderAfterColor: |
- case CSSPropertyTextDecorationColor: // CSS3 text decoration colors |
case CSSPropertyWebkitColumnRuleColor: |
case CSSPropertyWebkitTextEmphasisColor: |
case CSSPropertyWebkitTextStrokeColor: |
- ASSERT(propId != CSSPropertyTextDecorationColor || RuntimeEnabledFeatures::css3TextDecorationsEnabled()); |
parsedValue = parseColor(m_valueList->current(), acceptQuirkyColors(propId)); |
if (parsedValue) |
m_valueList->next(); |
@@ -659,19 +657,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
validPrimitive = validUnit(value, FLength | FPercent | unitless); |
break; |
- case CSSPropertyTextDecoration: |
- // Fall through 'text-decoration-line' parsing if CSS 3 Text Decoration |
- // is disabled to match CSS 2.1 rules for parsing 'text-decoration'. |
- if (RuntimeEnabledFeatures::css3TextDecorationsEnabled()) { |
- // [ <text-decoration-line> || <text-decoration-style> || <text-decoration-color> ] | inherit |
- return parseShorthand(CSSPropertyTextDecoration, textDecorationShorthand(), important); |
- } |
- case CSSPropertyWebkitTextDecorationsInEffect: |
- case CSSPropertyTextDecorationLine: |
- // none | [ underline || overline || line-through || blink ] | inherit |
- parsedValue = parseTextDecoration(); |
- break; |
- |
case CSSPropertyTextUnderlinePosition: |
// auto | [ under || [ left | right ] ], but we only support auto | under for now |
ASSERT(RuntimeEnabledFeatures::css3TextDecorationsEnabled()); |
@@ -1225,6 +1210,10 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
case CSSPropertyZIndex: |
case CSSPropertyTextShadow: |
case CSSPropertyBoxShadow: |
+ case CSSPropertyTextDecorationColor: |
+ case CSSPropertyWebkitTextDecorationsInEffect: |
+ case CSSPropertyTextDecorationLine: |
+ case CSSPropertyTextDecoration: |
validPrimitive = false; |
break; |
@@ -5593,39 +5582,6 @@ PassRefPtrWillBeRawPtr<CSSValueList> CSSPropertyParser::parseTransformOrigin() |
return list.release(); |
} |
-PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseTextDecoration() |
-{ |
- CSSParserValue* value = m_valueList->current(); |
- if (value && value->id == CSSValueNone) { |
- m_valueList->next(); |
- return cssValuePool().createIdentifierValue(CSSValueNone); |
- } |
- |
- RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); |
- bool isValid = true; |
- while (isValid && value) { |
- switch (value->id) { |
- case CSSValueUnderline: |
- case CSSValueOverline: |
- case CSSValueLineThrough: |
- case CSSValueBlink: |
- // TODO(timloh): This will incorrectly accept "blink blink" |
- list->append(cssValuePool().createIdentifierValue(value->id)); |
- break; |
- default: |
- isValid = false; |
- break; |
- } |
- if (isValid) |
- value = m_valueList->next(); |
- } |
- |
- // Values are either valid or in shorthand scope. |
- if (list->length()) |
- return list.release(); |
- return nullptr; |
-} |
- |
PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseTextEmphasisStyle() |
{ |
RefPtrWillBeRawPtr<CSSPrimitiveValue> fill = nullptr; |