| Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| index 76d2b2e12478df10c3c2f422c9d1573a7ee38b43..8e09fb9eb4cbcd981eadb3519362be1faa25a83e 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| @@ -4874,6 +4874,18 @@ bool CSSPropertyParser::parseShorthand(CSSPropertyID unresolvedProperty, bool im
|
| return consumeBackgroundShorthand(backgroundShorthand(), important);
|
| case CSSPropertyWebkitMask:
|
| return consumeBackgroundShorthand(webkitMaskShorthand(), important);
|
| + case CSSPropertyGridGap: {
|
| + ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled() && shorthandForProperty(CSSPropertyGridGap).length() == 2);
|
| + RefPtrWillBeRawPtr<CSSValue> rowGap = consumeLength(m_range, m_context.mode(), ValueRangeNonNegative);
|
| + RefPtrWillBeRawPtr<CSSValue> columnGap = consumeLength(m_range, m_context.mode(), ValueRangeNonNegative);
|
| + if (!rowGap || !m_range.atEnd())
|
| + return false;
|
| + if (!columnGap)
|
| + columnGap = rowGap;
|
| + addProperty(CSSPropertyGridRowGap, rowGap.release(), important);
|
| + addProperty(CSSPropertyGridColumnGap, columnGap.release(), important);
|
| + return true;
|
| + }
|
| default:
|
| m_currentShorthand = oldShorthand;
|
| CSSParserValueList valueList(m_range);
|
|
|