Chromium Code Reviews| 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 8fff7333f39042da9fd0b18aee1d0ab9270304e1..df5f3e339c8bebb66f27ecccb80acbcaacfe6976 100644 |
| --- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
| +++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
| @@ -3255,7 +3255,7 @@ static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> consumeSelfPositionKeyword(CSSP |
| static PassRefPtrWillBeRawPtr<CSSValue> consumeSelfPositionOverflowPosition(CSSParserTokenRange& range) |
| { |
| - if (identMatches<CSSValueAuto, CSSValueStretch, CSSValueBaseline, CSSValueLastBaseline>(range.peek().id())) |
| + if (identMatches<CSSValueAuto, CSSValueNormal, CSSValueStretch, CSSValueBaseline, CSSValueLastBaseline>(range.peek().id())) |
| return consumeIdent(range); |
| RefPtrWillBeRawPtr<CSSPrimitiveValue> overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); |
| @@ -3637,9 +3637,14 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseSingleValue(CSSProperty |
| case CSSPropertyWebkitMaskRepeatX: |
| case CSSPropertyWebkitMaskRepeatY: |
| return nullptr; |
| + case CSSPropertyAlignItems: |
| + ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled()); |
| + if (identMatches<CSSValueAuto>(m_range.peek().id())) { |
|
Timothy Loh
2016/03/15 00:30:28
Can we just make a separate function for align-ite
|
| + // align-items property does not allow the 'auto' value. |
| + return nullptr; |
| + } |
| case CSSPropertyJustifySelf: |
| case CSSPropertyAlignSelf: |
| - case CSSPropertyAlignItems: |
| ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled()); |
| return consumeSelfPositionOverflowPosition(m_range); |
| case CSSPropertyJustifyItems: |