Bug 1312260 - Part 3: Fix trailing whitespace in nsHTMLDocument.cpp r=bz

MozReview-Commit-ID: MkigKgSMAq

--HG--
extra : rebase_source : 44d79a870da5de69b165340cae7e1c753e516990
This commit is contained in:
Tomislav Jovanovic 2017-02-09 15:18:33 +01:00
Родитель b7b2ef265d
Коммит 4bbd63323f
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -656,7 +656,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
nsAutoCString parserCharset;
nsCOMPtr<nsIWyciwygChannel> wyciwygChannel;
// For error reporting and referrer policy setting
nsHtml5TreeOpExecutor* executor = nullptr;
if (loadAsHtml5) {
@ -723,7 +723,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
parserCharset = "UTF-16";
parserCharsetSource = charsetSource < kCharsetFromChannel ?
kCharsetFromChannel : charsetSource;
nsAutoCString cachedCharset;
int32_t cachedSource;
rv = wyciwygChannel->GetCharsetAndSource(&cachedSource, cachedCharset);
@ -736,7 +736,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
// Don't propagate this error.
rv = NS_OK;
}
} else {
parserCharset = charset;
parserCharsetSource = charsetSource;
@ -1260,7 +1260,7 @@ nsHTMLDocument::GetCookie(nsAString& aCookie, ErrorResult& rv)
rv.Throw(NS_ERROR_DOM_SECURITY_ERR);
return;
}
// not having a cookie service isn't an error
nsCOMPtr<nsICookieService> service = do_GetService(NS_COOKIESERVICE_CONTRACTID);
if (service) {
@ -2834,7 +2834,7 @@ nsHTMLDocument::EditingStateChanged()
if (spellRecheckAll) {
nsCOMPtr<nsISelectionController> selcon;
nsresult rv = editor->GetSelectionController(getter_AddRefs(selcon));
NS_ENSURE_SUCCESS(rv, rv);
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsISelection> spellCheckSelection;
rv = selcon->GetSelection(nsISelectionController::SELECTION_SPELLCHECK,