Part fo fix for prefs bugs: disabling forced colors and fonts for Composer shells. b=40340, r=karnaze,pierre verbal approval from k.brade, a=buster

This commit is contained in:
attinasi%netscape.com 2000-10-11 08:35:06 +00:00
Родитель f959a038e4
Коммит 043068f7e6
2 изменённых файлов: 10 добавлений и 0 удалений

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

@ -942,6 +942,11 @@ nsEditorShell::InstantiateEditor(nsIDOMDocument *aDoc, nsIPresShell *aPresShell)
#endif #endif
} }
// disable the preference style sheet so we can override colors
if (NS_SUCCEEDED(err)) {
err = aPresShell->EnablePrefStyleRules(PR_FALSE,0);
}
if (NS_SUCCEEDED(err) && editor) if (NS_SUCCEEDED(err) && editor)
{ {
mEditor = do_QueryInterface(editor); // this does the addref that is the owning reference mEditor = do_QueryInterface(editor); // this does the addref that is the owning reference

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

@ -942,6 +942,11 @@ nsEditorShell::InstantiateEditor(nsIDOMDocument *aDoc, nsIPresShell *aPresShell)
#endif #endif
} }
// disable the preference style sheet so we can override colors
if (NS_SUCCEEDED(err)) {
err = aPresShell->EnablePrefStyleRules(PR_FALSE,0);
}
if (NS_SUCCEEDED(err) && editor) if (NS_SUCCEEDED(err) && editor)
{ {
mEditor = do_QueryInterface(editor); // this does the addref that is the owning reference mEditor = do_QueryInterface(editor); // this does the addref that is the owning reference