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

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

Issue 14670019: Add a deprecation warning for document.clear() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: Source/core/page/UseCounter.cpp
diff --git a/Source/core/page/UseCounter.cpp b/Source/core/page/UseCounter.cpp
index dbb3ab6df53579dfff2bcb7ff25a2dedfaabba81..9692b62d56a3b290ac06e66976c53676c5f59abd 100644
--- a/Source/core/page/UseCounter.cpp
+++ b/Source/core/page/UseCounter.cpp
@@ -145,6 +145,9 @@ String UseCounter::deprecationMessage(Feature feature)
case WebAudioLooping:
return "AudioBufferSourceNode 'looping' attribute is deprecated. Use 'loop' instead.";
+ case DocumentClear:
+ return "document.clear() is deprecated.";
abarth-chromium 2013/05/07 20:24:46 Is there an alternative folks should use instead?
esprehn 2013/05/07 20:25:53 Nope, this method is a noop.
+
// Features that aren't deprecated don't have a deprecation message.
default:
return String();
« Source/bindings/scripts/CodeGeneratorV8.pm ('K') | « Source/core/page/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698