Bug 1667081 - Part 3: Remove windowLowered in nsIFocusManager; r=hsivonen

This patch also does following changes,
- Assert aWindow instead of early return given all caller passes a non-null window.
- Make it returning void given all caller doesn't actaully check the return value.

Differential Revision: https://phabricator.services.mozilla.com/D91289
This commit is contained in:
Edgar Chen
2020-09-28 14:04:37 +00:00
parent c909206bc9
commit d47f2956d1
4 changed files with 13 additions and 13 deletions

View File

@@ -2862,7 +2862,9 @@ void AppWindow::WindowDeactivated() {
nsCOMPtr<nsPIDOMWindowOuter> window =
mDocShell ? mDocShell->GetWindow() : nullptr;
nsFocusManager* fm = nsFocusManager::GetFocusManager();
if (fm && window && !fm->IsTestMode()) fm->WindowLowered(window);
if (fm && window && !fm->IsTestMode()) {
fm->WindowLowered(window);
}
}
#ifdef USE_NATIVE_MENUS