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:
bryner%netscape.com 2002-01-24 01:17:04 +00:00
Родитель 83bf03af58
Коммит a746d2a4d0
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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;