Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2744)

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp

Issue 2888283006: CSS: Use count position values with 3 parts (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..3c3d156dc1f6eda55de5829f5a6412012d7f7963 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp
@@ -34,7 +34,8 @@ static CSSBasicShapeCircleValue* ConsumeBasicShapeCircle(
if (ConsumeIdent<CSSValueAt>(args)) {
CSSValue* center_x = nullptr;
CSSValue* center_y = nullptr;
- if (!ConsumePosition(args, context.Mode(), UnitlessQuirk::kForbid, center_x,
+ if (!ConsumePosition(args, context, UnitlessQuirk::kForbid,
+ UseCounter::kThreeValuedPositionBasicShape, center_x,
center_y))
return nullptr;
shape->SetCenterX(center_x);
@@ -57,7 +58,8 @@ static CSSBasicShapeEllipseValue* ConsumeBasicShapeEllipse(
if (ConsumeIdent<CSSValueAt>(args)) {
CSSValue* center_x = nullptr;
CSSValue* center_y = nullptr;
- if (!ConsumePosition(args, context.Mode(), UnitlessQuirk::kForbid, center_x,
+ if (!ConsumePosition(args, context, UnitlessQuirk::kForbid,
+ UseCounter::kThreeValuedPositionBasicShape, center_x,
center_y))
return nullptr;
shape->SetCenterX(center_x);

Powered by Google App Engine
This is Rietveld 408576698