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

Unified Diff: Source/core/dom/Document.cpp

Issue 768313004: Deprecate the Document.charset setter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years 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
« no previous file with comments | « LayoutTests/fast/encoding/external-script-charset-expected.txt ('k') | Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 107231ad9a12142317b4626d1cc678819c9fda52..fed99da27b200b5a3b9ffe4f27ed8f3376f14c85 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1188,7 +1188,7 @@ String Document::defaultCharset() const
void Document::setCharset(const String& charset)
{
- UseCounter::count(*this, UseCounter::DocumentSetCharset);
+ UseCounter::countDeprecation(*this, UseCounter::DocumentSetCharset);
if (DocumentLoader* documentLoader = loader())
documentLoader->setUserChosenEncoding(charset);
WTF::TextEncoding encoding(charset);
« no previous file with comments | « LayoutTests/fast/encoding/external-script-charset-expected.txt ('k') | Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698