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

Unified Diff: Source/core/loader/DocumentWriter.cpp

Issue 22909053: Store the Document's encoding on the Document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/loader/DocumentWriter.cpp
diff --git a/Source/core/loader/DocumentWriter.cpp b/Source/core/loader/DocumentWriter.cpp
index 566351d30a906c1015606baf0ceb224a0d8a666d..f4c08cef24e064057392f81f341b8cf22676a53f 100644
--- a/Source/core/loader/DocumentWriter.cpp
+++ b/Source/core/loader/DocumentWriter.cpp
@@ -87,6 +87,7 @@ void DocumentWriter::appendReplacingData(const String& source)
void DocumentWriter::reportDataReceived()
{
ASSERT(m_decoder);
+ m_document->setEncoding(m_decoder->encoding());
if (m_hasReceivedSomeData)
return;
m_hasReceivedSomeData = true;

Powered by Google App Engine
This is Rietveld 408576698