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.
git-svn-id: svn://10.0.0.236/trunk@112601 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2d322d5edb
commit
b286121668
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user