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

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

Issue 2866933002: Revert sending deprecation messages for prefixed gradients. (Closed)
Patch Set: rebaseline 2 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.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
index 203b4dc6c1cfb8eca151fad2f04fb42f6fd50f5c..47144acf44c6abcb6d34c70563aa65569f9d8ca5 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
@@ -1295,12 +1295,11 @@ static CSSValue* ConsumeGeneratedImage(CSSParserTokenRange& range,
} else if (id == CSSValueRepeatingRadialGradient) {
result = ConsumeRadialGradient(args, context->Mode(), kRepeating);
} else if (id == CSSValueWebkitLinearGradient) {
- context->CountDeprecation(UseCounter::kDeprecatedWebKitLinearGradient);
+ context->Count(UseCounter::kDeprecatedWebKitLinearGradient);
result = ConsumeLinearGradient(args, context->Mode(), kNonRepeating,
kCSSPrefixedLinearGradient);
} else if (id == CSSValueWebkitRepeatingLinearGradient) {
- context->CountDeprecation(
- UseCounter::kDeprecatedWebKitRepeatingLinearGradient);
+ context->Count(UseCounter::kDeprecatedWebKitRepeatingLinearGradient);
result = ConsumeLinearGradient(args, context->Mode(), kRepeating,
kCSSPrefixedLinearGradient);
} else if (id == CSSValueRepeatingLinearGradient) {
@@ -1310,15 +1309,14 @@ static CSSValue* ConsumeGeneratedImage(CSSParserTokenRange& range,
result = ConsumeLinearGradient(args, context->Mode(), kNonRepeating,
kCSSLinearGradient);
} else if (id == CSSValueWebkitGradient) {
- context->CountDeprecation(UseCounter::kDeprecatedWebKitGradient);
+ context->Count(UseCounter::kDeprecatedWebKitGradient);
result = ConsumeDeprecatedGradient(args, context->Mode());
} else if (id == CSSValueWebkitRadialGradient) {
- context->CountDeprecation(UseCounter::kDeprecatedWebKitRadialGradient);
+ context->Count(UseCounter::kDeprecatedWebKitRadialGradient);
result =
ConsumeDeprecatedRadialGradient(args, context->Mode(), kNonRepeating);
} else if (id == CSSValueWebkitRepeatingRadialGradient) {
- context->CountDeprecation(
- UseCounter::kDeprecatedWebKitRepeatingRadialGradient);
+ context->Count(UseCounter::kDeprecatedWebKitRepeatingRadialGradient);
result = ConsumeDeprecatedRadialGradient(args, context->Mode(), kRepeating);
} else if (id == CSSValueConicGradient) {
result = ConsumeConicGradient(args, context->Mode(), kNonRepeating);

Powered by Google App Engine
This is Rietveld 408576698