mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 575294. part=1/4 r=enndeakin
This commit is contained in:
parent
3dad511e1e
commit
96e7be1055
@ -927,15 +927,20 @@ nsFocusManager::WindowHidden(nsIDOMWindow* aWindow)
|
||||
nsIContent* oldFocusedContent = mFocusedContent;
|
||||
mFocusedContent = nsnull;
|
||||
|
||||
nsCOMPtr<nsIDocShell> focusedDocShell = mFocusedWindow->GetDocShell();
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
focusedDocShell->GetPresShell(getter_AddRefs(presShell));
|
||||
|
||||
if (oldFocusedContent && oldFocusedContent->IsInDoc()) {
|
||||
NotifyFocusStateChange(oldFocusedContent,
|
||||
mFocusedWindow->ShouldShowFocusRing(),
|
||||
false);
|
||||
}
|
||||
window->UpdateCommands(NS_LITERAL_STRING("focus"));
|
||||
|
||||
nsCOMPtr<nsIDocShell> focusedDocShell = mFocusedWindow->GetDocShell();
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
focusedDocShell->GetPresShell(getter_AddRefs(presShell));
|
||||
SendFocusOrBlurEvent(NS_BLUR_CONTENT, presShell,
|
||||
oldFocusedContent->GetCurrentDoc(),
|
||||
oldFocusedContent, 1, false);
|
||||
}
|
||||
|
||||
nsIMEStateManager::OnTextStateBlur(nsnull, nsnull);
|
||||
if (presShell) {
|
||||
|
Loading…
Reference in New Issue
Block a user