| 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 4ed490cb7cd534899e06933e77dcaaf0512e9528..3eb4957f181252ff80287ec79f83a6e877b46986 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| @@ -304,10 +304,6 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::legacyParseValue(CSSProperty
|
| bool CSSPropertyParser::legacyParseShorthand(CSSPropertyID propertyID, bool important)
|
| {
|
| switch (propertyID) {
|
| - case CSSPropertyGridGap:
|
| - ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled());
|
| - return parseGridGapShorthand(important);
|
| -
|
| case CSSPropertyGridColumn:
|
| case CSSPropertyGridRow:
|
| ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled());
|
| @@ -463,39 +459,6 @@ bool CSSPropertyParser::parseGridItemPositionShorthand(CSSPropertyID shorthandId
|
| return true;
|
| }
|
|
|
| -bool CSSPropertyParser::parseGridGapShorthand(bool important)
|
| -{
|
| - ShorthandScope scope(this, CSSPropertyGridGap);
|
| - ASSERT(shorthandForProperty(CSSPropertyGridGap).length() == 2);
|
| -
|
| - CSSParserValue* value = m_valueList->current();
|
| - if (!value)
|
| - return false;
|
| -
|
| - if (!validUnit(value, FLength | FNonNeg))
|
| - return false;
|
| -
|
| - RefPtrWillBeRawPtr<CSSPrimitiveValue> rowGap = createPrimitiveNumericValue(value);
|
| - RefPtrWillBeRawPtr<CSSPrimitiveValue> columnGap = nullptr;
|
| -
|
| - value = m_valueList->next();
|
| - if (value) {
|
| - if (!validUnit(value, FLength | FNonNeg))
|
| - return false;
|
| -
|
| - columnGap = createPrimitiveNumericValue(value);
|
| - if (m_valueList->next())
|
| - return false;
|
| - } else {
|
| - columnGap = rowGap;
|
| - }
|
| -
|
| - addProperty(CSSPropertyGridRowGap, rowGap, important);
|
| - addProperty(CSSPropertyGridColumnGap, columnGap, important);
|
| -
|
| - return true;
|
| -}
|
| -
|
| PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseGridTemplateColumns(bool important)
|
| {
|
| if (!(m_valueList->current() && isForwardSlashOperator(m_valueList->current()) && m_valueList->next()))
|
|
|