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

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: Rebased Created 5 years, 6 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/frame/UseCounter.h ('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 794e5246280616c7eac16ece4dcd6f35f3e28642..2b7f014227ea74cca7480d6d26d5a3d2cb520d57 100644
--- a/Source/core/frame/UseCounter.cpp
+++ b/Source/core/frame/UseCounter.cpp
@@ -928,6 +928,12 @@ String UseCounter::deprecationMessage(Feature feature)
case PrefixedMouseEventMovementY:
return replacedBy("webkitMovementY", "movementY");
+ 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/frame/UseCounter.h ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698