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

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: fix tests 2 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 e8ab30e7254d6fb9d7fa987897f9d47249673923..0fe9983d09db582b87664e516079a25dee5f353a 100644
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp
@@ -442,6 +442,24 @@ String Deprecation::deprecationMessage(UseCounter::Feature feature) {
return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60,
"5725741740195840");
+ 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