Bug 1519296 - Part 3: Make PresShell::AddOverrideStyleSheet append its sheet rather than prepend r=emilio

We only ever add a single sheet (EditorOverride.css) there anyway.

Depends on D16282

Differential Revision: https://phabricator.services.mozilla.com/D16283
This commit is contained in:
Cameron McCormack
2019-01-12 06:45:52 +00:00
parent 836359028d
commit f111c08be6

View File

@@ -8259,7 +8259,7 @@ nsresult PresShell::SetAgentStyleSheets(
}
nsresult PresShell::AddOverrideStyleSheet(StyleSheet* aSheet) {
return mStyleSet->PrependStyleSheet(SheetType::Override, aSheet);
return mStyleSet->AppendStyleSheet(SheetType::Override, aSheet);
}
nsresult PresShell::RemoveOverrideStyleSheet(StyleSheet* aSheet) {