| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp
|
| index 393a62be5f36e308c2faed34b923f99236383ae9..f2b443aa9b1e9b288e51f05f73918d4876b5aa52 100644
|
| --- a/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp
|
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp
|
| @@ -34,9 +34,12 @@ static CSSBasicShapeCircleValue* ConsumeBasicShapeCircle(
|
| if (ConsumeIdent<CSSValueAt>(args)) {
|
| CSSValue* center_x = nullptr;
|
| CSSValue* center_y = nullptr;
|
| - if (!ConsumePosition(args, context.Mode(), UnitlessQuirk::kForbid, center_x,
|
| - center_y))
|
| + auto syntax = CSSPropertyParserHelpers::PositionSyntax::kPermitThreeValues;
|
| + if (!ConsumePosition(args, context, UnitlessQuirk::kForbid, syntax,
|
| + center_x, center_y))
|
| return nullptr;
|
| + if (syntax == CSSPropertyParserHelpers::PositionSyntax::kCountThreeValues)
|
| + context.Count(UseCounter::kThreeValuedPositionBasicShape);
|
| shape->SetCenterX(center_x);
|
| shape->SetCenterY(center_y);
|
| }
|
| @@ -57,9 +60,12 @@ static CSSBasicShapeEllipseValue* ConsumeBasicShapeEllipse(
|
| if (ConsumeIdent<CSSValueAt>(args)) {
|
| CSSValue* center_x = nullptr;
|
| CSSValue* center_y = nullptr;
|
| - if (!ConsumePosition(args, context.Mode(), UnitlessQuirk::kForbid, center_x,
|
| - center_y))
|
| + auto syntax = CSSPropertyParserHelpers::PositionSyntax::kPermitThreeValues;
|
| + if (!ConsumePosition(args, context, UnitlessQuirk::kForbid, syntax,
|
| + center_x, center_y))
|
| return nullptr;
|
| + if (syntax == CSSPropertyParserHelpers::PositionSyntax::kCountThreeValues)
|
| + context.Count(UseCounter::kThreeValuedPositionBasicShape);
|
| shape->SetCenterX(center_x);
|
| shape->SetCenterY(center_y);
|
| }
|
|
|