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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h

Issue 2898133002: CSS: Use count unitless 0 supplied as <angle> (Closed)
Patch Set: test custom property 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/parser/CSSPropertyParserHelpers.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h
index e1f2a5f6a246ddc69af242a03f058341d0602292..bb38a8c6c6980a409296a2c9ab858510344c3fa6 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h
@@ -11,6 +11,7 @@
#include "core/css/CSSValueList.h"
#include "core/css/parser/CSSParserMode.h"
#include "core/css/parser/CSSParserTokenRange.h"
+#include "core/frame/UseCounter.h"
#include "platform/Length.h" // For ValueRange
#include "platform/heap/Handle.h"
@@ -53,7 +54,14 @@ CSSPrimitiveValue* ConsumeLengthOrPercent(
CSSParserMode,
ValueRange,
UnitlessQuirk = UnitlessQuirk::kForbid);
-CSSPrimitiveValue* ConsumeAngle(CSSParserTokenRange&);
+
+// Pass UnitlessQuirk::kForbid and
+// UseCounter::Feature::kNumberOfFeatures if
+// literal 0 angles are not supported.
+CSSPrimitiveValue* ConsumeAngle(CSSParserTokenRange&,
+ const CSSParserContext&,
+ UnitlessQuirk,
+ UseCounter::Feature literalZero);
CSSPrimitiveValue* ConsumeTime(CSSParserTokenRange&, ValueRange);
CSSPrimitiveValue* ConsumeResolution(CSSParserTokenRange&);

Powered by Google App Engine
This is Rietveld 408576698