| 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 3f4f1a9e361cab2a607ab707874cf17478903c44..a1871988d84b7ffc12be473ae7846428e730177c 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| @@ -435,12 +435,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
|
| // close-quote | no-open-quote | no-close-quote ]+ | inherit
|
| parsedValue = parseContent();
|
| break;
|
| - case CSSPropertyClip: // <shape> | auto | inherit
|
| - if (id == CSSValueAuto)
|
| - validPrimitive = true;
|
| - else if (value->m_unit == CSSParserValue::Function)
|
| - parsedValue = parseClipShape();
|
| - break;
|
|
|
| /* Start of supported CSS properties with validation. This is needed for parseShorthand to work
|
| * correctly and allows optimization in blink::applyRule(..)
|
| @@ -1351,6 +1345,7 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
|
| case CSSPropertyCounterReset:
|
| case CSSPropertySize:
|
| case CSSPropertyTextIndent:
|
| + case CSSPropertyClip:
|
| validPrimitive = false;
|
| break;
|
|
|
| @@ -3725,50 +3720,6 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseCounterContent(CSSParse
|
| return CSSCounterValue::create(identifier.release(), listStyle.release(), separator.release());
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<CSSQuadValue> CSSPropertyParser::parseClipShape()
|
| -{
|
| - CSSParserValue* value = m_valueList->current();
|
| - CSSParserValueList* args = value->function->args.get();
|
| -
|
| - if (value->function->id != CSSValueRect || !args)
|
| - return nullptr;
|
| -
|
| - // rect(t, r, b, l) || rect(t r b l)
|
| - if (args->size() != 4 && args->size() != 7)
|
| - return nullptr;
|
| - int i = 0;
|
| - CSSParserValue* a = args->current();
|
| -
|
| - RefPtrWillBeRawPtr<CSSPrimitiveValue> top = nullptr;
|
| - RefPtrWillBeRawPtr<CSSPrimitiveValue> right = nullptr;
|
| - RefPtrWillBeRawPtr<CSSPrimitiveValue> bottom = nullptr;
|
| - RefPtrWillBeRawPtr<CSSPrimitiveValue> left = nullptr;
|
| - while (a) {
|
| - if (a->id != CSSValueAuto && !validUnit(a, FLength | FUnitlessQuirk))
|
| - return nullptr;
|
| - RefPtrWillBeRawPtr<CSSPrimitiveValue> length = a->id == CSSValueAuto ?
|
| - cssValuePool().createIdentifierValue(CSSValueAuto) :
|
| - createPrimitiveNumericValue(a);
|
| - if (i == 0)
|
| - top = length;
|
| - else if (i == 1)
|
| - right = length;
|
| - else if (i == 2)
|
| - bottom = length;
|
| - else
|
| - left = length;
|
| - a = args->next();
|
| - if (a && args->size() == 7) {
|
| - if (!consumeComma(args))
|
| - return nullptr;
|
| - a = args->current();
|
| - }
|
| - i++;
|
| - }
|
| - m_valueList->next();
|
| - return CSSQuadValue::create(top.release(), right.release(), bottom.release(), left.release(), CSSQuadValue::SerializeAsRect);
|
| -}
|
| -
|
| static void completeBorderRadii(RefPtrWillBeRawPtr<CSSPrimitiveValue> radii[4])
|
| {
|
| if (radii[3])
|
|
|