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

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

Issue 2898133002: CSS: Use count unitless 0 supplied as <angle> (Closed)
Patch Set: test 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/CSSPropertyOffsetPathUtils.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp
index 1cbdbcfd462cea8fb2d27713570153d7a50d63e8..9bc9d5023623268928bc3aa0dd437810a2b92e89 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp
@@ -44,7 +44,8 @@ CSSValue* ConsumePath(CSSParserTokenRange& range) {
return CSSPathValue::Create(std::move(byte_stream));
}
-CSSValue* ConsumeRay(CSSParserTokenRange& range) {
+CSSValue* ConsumeRay(CSSParserTokenRange& range,
+ const CSSParserContext* context) {
DCHECK_EQ(range.Peek().FunctionId(), CSSValueRay);
CSSParserTokenRange function_range = range;
CSSParserTokenRange function_args =
@@ -55,7 +56,8 @@ CSSValue* ConsumeRay(CSSParserTokenRange& range) {
CSSIdentifierValue* contain = nullptr;
while (!function_args.AtEnd()) {
if (!angle) {
- angle = CSSPropertyParserHelpers::ConsumeAngle(function_args);
+ angle = CSSPropertyParserHelpers::ConsumeAngle(
+ function_args, *context, WTF::Optional<UseCounter::Feature>());
if (angle)
continue;
}
@@ -88,7 +90,7 @@ CSSValue* CSSPropertyOffsetPathUtils::ConsumeOffsetPath(
CSSValue* value = nullptr;
if (RuntimeEnabledFeatures::cssOffsetPathRayEnabled() &&
range.Peek().FunctionId() == CSSValueRay)
- value = ConsumeRay(range);
+ value = ConsumeRay(range, context);
else
value = ConsumePathOrNone(range);

Powered by Google App Engine
This is Rietveld 408576698