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 29162c36e7cfb03dbc1d97c63b91a95c0f196c5b..704b8196336bf9f207357fdf11b3cb4b37e44fd6 100644 |
| --- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
| +++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
| @@ -1202,6 +1202,13 @@ static PassRefPtrWillBeRawPtr<CSSValueList> consumeAnimationPropertyList(CSSProp |
| return list.release(); |
| } |
| +static PassRefPtrWillBeRawPtr<CSSValue> consumeWidowsOrOrphans(CSSParserTokenRange& range) |
| +{ |
| + if (range.peek().id() == CSSValueAuto) |
|
Timothy Loh
2015/10/21 04:01:53
Probably should comment that auto is non-standard
|
| + return consumeIdent(range); |
| + return consumePositiveInteger(range); |
| +} |
| + |
| PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseSingleValue(CSSPropertyID unresolvedProperty) |
| { |
| CSSPropertyID property = resolveCSSPropertyID(unresolvedProperty); |
| @@ -1296,6 +1303,9 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseSingleValue(CSSProperty |
| case CSSPropertyAnimationTimingFunction: |
| case CSSPropertyTransitionTimingFunction: |
| return consumeAnimationPropertyList(property, m_range, m_context, unresolvedProperty == CSSPropertyAliasWebkitAnimationName); |
| + case CSSPropertyOrphans: |
| + case CSSPropertyWidows: |
| + return consumeWidowsOrOrphans(m_range); |
| default: |
| return nullptr; |
| } |