Bug 1646484 - Remove nsIDocShell::forcedCharset. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D80072
This commit is contained in:
@@ -1356,12 +1356,6 @@ nsDocShell::GatherCharsetMenuTelemetry() {
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::SetCharset(const nsACString& aCharset) {
|
||||
// set the charset override
|
||||
return SetForcedCharset(aCharset);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::SetForcedCharset(const nsACString& aCharset) {
|
||||
if (aCharset.IsEmpty()) {
|
||||
mForcedCharset = nullptr;
|
||||
return NS_OK;
|
||||
@@ -1379,16 +1373,6 @@ nsDocShell::SetForcedCharset(const nsACString& aCharset) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::GetForcedCharset(nsACString& aResult) {
|
||||
if (mForcedCharset) {
|
||||
mForcedCharset->Name(aResult);
|
||||
} else {
|
||||
aResult.Truncate();
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void nsDocShell::SetParentCharset(const Encoding*& aCharset,
|
||||
int32_t aCharsetSource,
|
||||
nsIPrincipal* aPrincipal) {
|
||||
|
||||
Reference in New Issue
Block a user