| 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 0388e82893ce7bc95d89f316808ad042d0169381..f5aed377757f0a70300f892eafaa22d6b6198e51 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| @@ -2463,6 +2463,23 @@ bool CSSPropertyParser::ConsumeBorder(bool important) {
|
| return range_.AtEnd();
|
| }
|
|
|
| +bool CSSPropertyParser::Consume2Values(const StylePropertyShorthand& shorthand,
|
| + bool important) {
|
| + DCHECK_EQ(shorthand.length(), 2u);
|
| + const CSSPropertyID* longhands = shorthand.properties();
|
| + const CSSValue* start = ParseSingleValue(longhands[0], shorthand.id());
|
| + if (!start)
|
| + return false;
|
| +
|
| + const CSSValue* end = ParseSingleValue(longhands[1], shorthand.id());
|
| + if (!end)
|
| + end = start;
|
| + AddProperty(longhands[0], shorthand.id(), *start, important);
|
| + AddProperty(longhands[1], shorthand.id(), *end, important);
|
| +
|
| + return range_.AtEnd();
|
| +}
|
| +
|
| bool CSSPropertyParser::Consume4Values(const StylePropertyShorthand& shorthand,
|
| bool important) {
|
| DCHECK_EQ(shorthand.length(), 4u);
|
| @@ -3430,6 +3447,8 @@ bool CSSPropertyParser::ParseShorthand(CSSPropertyID unresolved_property,
|
| return ConsumePlaceItemsShorthand(important);
|
| case CSSPropertyPlaceSelf:
|
| return ConsumePlaceSelfShorthand(important);
|
| + case CSSPropertyScrollBoundaryBehavior:
|
| + return Consume2Values(scrollBoundaryBehaviorShorthand(), important);
|
| default:
|
| return false;
|
| }
|
|
|