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

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

Issue 1180793002: Document attribute charset and its aliases to return UTF-8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add utf-8, utf8 and unicode-1-1-utf-8 as the return type 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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index d305ffb3d2a566c0ec7c61d0db9b06639882d94a..8f9db56cc4018a549df0efaa59564a7e9c546995 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -4218,6 +4218,7 @@ void Document::setEncodingData(const DocumentEncodingData& newData)
m_titleElement->setTextContent(correctlyDecodedTitle);
}
+ ASSERT(newData.encoding().isValid());
m_encodingData = newData;
// FIXME: Should be removed as part of https://code.google.com/p/chromium/issues/detail?id=319643

Powered by Google App Engine
This is Rietveld 408576698