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

Unified Diff: third_party/WebKit/Source/core/frame/Deprecation.cpp

Issue 2746583003: Send deprecation messages for prefixed gradients now that it's possible. (Closed)
Patch Set: one last manual rebaseline Created 3 years, 9 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/frame/Deprecation.cpp
diff --git a/third_party/WebKit/Source/core/frame/Deprecation.cpp b/third_party/WebKit/Source/core/frame/Deprecation.cpp
index 2f62ff31a638e61653b0199050639fa904c56787..2b05e113f171f8c734c4d120511cf314c5273c0d 100644
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp
@@ -426,6 +426,24 @@ String Deprecation::deprecationMessage(UseCounter::Feature feature) {
"the 'script-src' directive for Workers",
M60, "5922594955984896");
+ case UseCounter::DeprecatedWebKitLinearGradient:
+ return replacedBy("-webkit-linear-gradient", "linear-gradient");
+
+ case UseCounter::DeprecatedWebKitRepeatingLinearGradient:
+ return replacedBy("-webkit-repeating-linear-gradient",
+ "repeating-linear-gradient");
+
+ case UseCounter::DeprecatedWebKitGradient:
+ return replacedBy("-webkit-gradient",
+ "linear-gradient or radial-gradient");
+
+ case UseCounter::DeprecatedWebKitRadialGradient:
+ return replacedBy("-webkit-radial-gradient", "radial-gradient");
+
+ case UseCounter::DeprecatedWebKitRepeatingRadialGradient:
+ return replacedBy("-webkit-repeating-radial-gradient",
+ "repeating-radial-gradient");
+
// Features that aren't deprecated don't have a deprecation message.
default:
return String();

Powered by Google App Engine
This is Rietveld 408576698