зеркало из https://github.com/mozilla/gecko-dev.git
Part of fix for bug 91184, checked in on the 0.9.4 branch but forgot to check it in on the trunk. r=saari, sr=hyatt.
This commit is contained in:
Родитель
83bf03af58
Коммит
a746d2a4d0
|
@ -107,7 +107,9 @@
|
|||
// http://bugzilla.mozilla.org/show_bug.cgi?id=71482
|
||||
#include "nsIBrowserHistory.h"
|
||||
|
||||
#ifdef DEBUG_DOCSHELL_FOCUS
|
||||
#include "nsIEventStateManager.h"
|
||||
#endif
|
||||
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIStyleContext.h"
|
||||
|
@ -1450,11 +1452,10 @@ nsDocShell::TabToTreeOwner(PRBool aForward, PRBool* aTookFocus)
|
|||
|
||||
nsCOMPtr<nsIWebBrowserChromeFocus> chromeFocus = do_GetInterface(mTreeOwner);
|
||||
if (chromeFocus) {
|
||||
*aTookFocus = PR_TRUE;
|
||||
if (aForward)
|
||||
chromeFocus->FocusNextElement();
|
||||
*aTookFocus = NS_SUCCEEDED(chromeFocus->FocusNextElement());
|
||||
else
|
||||
chromeFocus->FocusPrevElement();
|
||||
*aTookFocus = NS_SUCCEEDED(chromeFocus->FocusPrevElement());
|
||||
} else
|
||||
*aTookFocus = PR_FALSE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче