Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen

MozReview-Commit-ID: GF0YXDwfA14
This commit is contained in:
Masatoshi Kimura
2017-06-18 20:37:50 +09:00
parent 8ddaccacfb
commit cff1fdcb48
81 changed files with 584 additions and 450 deletions

View File

@@ -228,8 +228,7 @@ ScriptLoadHandler::EnsureDecoder(nsIIncrementalStreamLoader* aLoader,
// Get the charset from the charset of the document.
if (mScriptLoader->mDocument) {
encoding =
Encoding::ForName(mScriptLoader->mDocument->GetDocumentCharacterSet());
encoding = mScriptLoader->mDocument->GetDocumentCharacterSet();
mDecoder = encoding->NewDecoderWithoutBOMHandling();
encoding->Name(oCharset);
return true;