Bug 82244

backout old patch
r= radha sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@98310 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
yokoyama%netscape.com
2001-06-29 22:12:14 +00:00
parent 26808859a1
commit d4ecaf45af
5 changed files with 32 additions and 16 deletions

View File

@@ -609,6 +609,8 @@ nsWebShell::LoadDocument(const char* aURL,
return NS_OK;
}
//This functions is only called when a new charset is detected in loading a document.
//Its name should be changed to "CharsetReloadDocument"
NS_IMETHODIMP
nsWebShell::ReloadDocument(const char* aCharset,
nsCharsetSource aSource)
@@ -629,8 +631,7 @@ nsWebShell::ReloadDocument(const char* aCharset,
muDV->SetHintCharacterSet(NS_ConvertASCIItoUCS2(aCharset).GetUnicode());
muDV->SetHintCharacterSetSource((PRInt32)aSource);
mCharsetReloadState = eCharsetReloadRequested;
// XXX: LOAD_HISTORY really means load from cache...
return Reload(LOAD_HISTORY);
return Reload(LOAD_FLAGS_CHARSET_CHANGE);
}
}
}