| 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 e9c35432b307d0d004e6b4ffe64cf09b9daca9ac..996a5a79918f8e16419ddf4edc28c8adeeb3a907 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| @@ -437,11 +437,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();
|
| @@ -666,19 +664,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());
|
| @@ -1221,6 +1206,10 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
|
| case CSSPropertyBoxShadow:
|
| case CSSPropertyWebkitFilter:
|
| case CSSPropertyBackdropFilter:
|
| + case CSSPropertyTextDecorationColor:
|
| + case CSSPropertyWebkitTextDecorationsInEffect:
|
| + case CSSPropertyTextDecorationLine:
|
| + case CSSPropertyTextDecoration:
|
| validPrimitive = false;
|
| break;
|
|
|
| @@ -5404,39 +5393,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;
|
|
|