| 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 c3d34522f4f331c1a6e635cb253eac6e08f28e61..a3b1c66687bc674d530c354930f8fa0f267fbc4e 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| @@ -297,11 +297,6 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::legacyParseValue(CSSProperty
|
| bool CSSPropertyParser::legacyParseShorthand(CSSPropertyID propertyID, bool important)
|
| {
|
| switch (propertyID) {
|
| - case CSSPropertyGridColumn:
|
| - case CSSPropertyGridRow:
|
| - ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled());
|
| - return parseGridItemPositionShorthand(propertyID, important);
|
| -
|
| case CSSPropertyGridArea:
|
| ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled());
|
| return parseGridAreaShorthand(important);
|
| @@ -422,36 +417,6 @@ static PassRefPtrWillBeRawPtr<CSSValue> gridMissingGridPositionValue(CSSValue* v
|
| return cssValuePool().createIdentifierValue(CSSValueAuto);
|
| }
|
|
|
| -bool CSSPropertyParser::parseGridItemPositionShorthand(CSSPropertyID shorthandId, bool important)
|
| -{
|
| - ShorthandScope scope(this, shorthandId);
|
| - const StylePropertyShorthand& shorthand = shorthandForProperty(shorthandId);
|
| - ASSERT(shorthand.length() == 2);
|
| -
|
| - RefPtrWillBeRawPtr<CSSValue> startValue = parseGridPosition();
|
| - if (!startValue)
|
| - return false;
|
| -
|
| - RefPtrWillBeRawPtr<CSSValue> endValue = nullptr;
|
| - if (m_valueList->current()) {
|
| - if (!isForwardSlashOperator(m_valueList->current()))
|
| - return false;
|
| -
|
| - if (!m_valueList->next())
|
| - return false;
|
| -
|
| - endValue = parseGridPosition();
|
| - if (!endValue || m_valueList->current())
|
| - return false;
|
| - } else {
|
| - endValue = gridMissingGridPositionValue(startValue.get());
|
| - }
|
| -
|
| - addProperty(shorthand.properties()[0], startValue, important);
|
| - addProperty(shorthand.properties()[1], endValue, important);
|
| - return true;
|
| -}
|
| -
|
| PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseGridTemplateColumns(bool important)
|
| {
|
| if (!(m_valueList->current() && isForwardSlashOperator(m_valueList->current()) && m_valueList->next()))
|
|
|