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..5d73210fff7c5d6fe4b1556c003ccbd3d01e95eb 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -1202,6 +1202,14 @@ static PassRefPtrWillBeRawPtr<CSSValueList> consumeAnimationPropertyList(CSSProp |
return list.release(); |
} |
+static PassRefPtrWillBeRawPtr<CSSValue> consumeWidowsOrOrphans(CSSParserTokenRange& range) |
+{ |
+ // Support for auto is non-standard and for backwards compatibility. |
+ if (range.peek().id() == CSSValueAuto) |
+ return consumeIdent(range); |
+ return consumePositiveInteger(range); |
+} |
+ |
PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseSingleValue(CSSPropertyID unresolvedProperty) |
{ |
CSSPropertyID property = resolveCSSPropertyID(unresolvedProperty); |
@@ -1296,6 +1304,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; |
} |