Fix for 56136 -- when reloading the editor page because of a charset change, call the predestroy notification, so that listeners (e.g. the UI update timer) can tear themselves down. r=akkana, sr=kin

This commit is contained in:
sfraser%netscape.com 2000-10-18 20:25:49 +00:00
Родитель 8f77276a48
Коммит cba554d878
2 изменённых файлов: 12 добавлений и 0 удалений

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

@ -349,6 +349,12 @@ nsEditorShell::ResetEditingState()
// one URL into the content area. Let's tear down what we have, and rip 'em a
// new one.
nsCOMPtr<nsIEditor> editor(do_QueryInterface(mEditor));
if (editor)
{
editor->PreDestroy();
}
// Unload existing stylesheets
nsCOMPtr<nsIEditorStyleSheets> styleSheets = do_QueryInterface(mEditor);
if (styleSheets)

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

@ -349,6 +349,12 @@ nsEditorShell::ResetEditingState()
// one URL into the content area. Let's tear down what we have, and rip 'em a
// new one.
nsCOMPtr<nsIEditor> editor(do_QueryInterface(mEditor));
if (editor)
{
editor->PreDestroy();
}
// Unload existing stylesheets
nsCOMPtr<nsIEditorStyleSheets> styleSheets = do_QueryInterface(mEditor);
if (styleSheets)