Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIScrollSnapCoordinate.cpp |
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIScrollSnapCoordinate.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIScrollSnapCoordinate.cpp |
index 9be720bec71987ce1919d41a20ade40c1c721fce..f4e09ab69e84df35503883ee9884e8e2c733a951 100644 |
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIScrollSnapCoordinate.cpp |
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIScrollSnapCoordinate.cpp |
@@ -12,12 +12,12 @@ |
namespace blink { |
static CSSValueList* ConsumePositionList(CSSParserTokenRange& range, |
- CSSParserMode css_parser_mode) { |
+ const CSSParserContext& context) { |
CSSValueList* positions = CSSValueList::CreateCommaSeparated(); |
do { |
- CSSValue* position = |
- ConsumePosition(range, css_parser_mode, |
- CSSPropertyParserHelpers::UnitlessQuirk::kForbid); |
+ CSSValue* position = ConsumePosition( |
+ range, context, CSSPropertyParserHelpers::UnitlessQuirk::kForbid, |
+ CSSPropertyParserHelpers::PositionSyntax::kScrollSnapPoints); |
if (!position) |
return nullptr; |
positions->Append(*position); |
@@ -31,7 +31,7 @@ const CSSValue* CSSPropertyAPIScrollSnapCoordinate::parseSingleValue( |
CSSPropertyID) { |
if (range.Peek().Id() == CSSValueNone) |
return CSSPropertyParserHelpers::ConsumeIdent(range); |
- return ConsumePositionList(range, context.Mode()); |
+ return ConsumePositionList(range, context); |
} |
} // namespace blink |