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

Unified Diff: Source/core/frame/UseCounter.cpp

Issue 966843002: Mark DOMStringList.contains() as deprecated, add console warning. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Deprecate named getter Created 5 years, 10 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
« Source/core/dom/DOMStringList.idl ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/UseCounter.cpp
diff --git a/Source/core/frame/UseCounter.cpp b/Source/core/frame/UseCounter.cpp
index a1033f1465c4a53a786cc764e7cef9b52ad0ab7b..0642eec317246f934f0534d5e3222e248fdfcdd0 100644
--- a/Source/core/frame/UseCounter.cpp
+++ b/Source/core/frame/UseCounter.cpp
@@ -867,6 +867,12 @@ String UseCounter::deprecationMessage(Feature feature)
case ServiceWorkerClientsGetAll:
return "'Clients.getAll()' is deprecated and will be removed soon. Please use 'Clients.matchAll()' instead.";
+ case DOMStringListContains:
+ return "'DOMStringList.contains()' is deprecated, and will be removed.";
+
+ case DOMStringListItem:
+ return "'DOMStringList.item(n)' is deprecated, and will be removed. Please use indexing instead, e.g.: list[n]";
+
// Features that aren't deprecated don't have a deprecation message.
default:
return String();
« Source/core/dom/DOMStringList.idl ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698