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

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

Issue 1145773003: Remove the Document.charset setter (making it readonly) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix webexposed tests Created 5 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
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('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 605ea63164fcc2ab7bfcf6708ce12dada440908a..eccc2c96c6969f3bb364b998532f58091684dd81 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1131,20 +1131,6 @@ String Document::defaultCharset() const
return String();
}
-void Document::setCharset(const String& charset)
-{
- UseCounter::countDeprecation(*this, UseCounter::DocumentSetCharset);
- if (DocumentLoader* documentLoader = loader())
- documentLoader->setUserChosenEncoding(charset);
- WTF::TextEncoding encoding(charset);
- // In case the encoding didn't exist, we keep the old one (helps some sites specifying invalid encodings).
- if (!encoding.isValid())
- return;
- DocumentEncodingData newEncodingData = m_encodingData;
- newEncodingData.setEncoding(encoding);
- setEncodingData(newEncodingData);
-}
-
void Document::setContentLanguage(const AtomicString& language)
{
if (m_contentLanguage == language)
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698