зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f959a038e4
Коммит
043068f7e6
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче