From 70908d27df960fdcc58c301d11f89fc445a8c5fb Mon Sep 17 00:00:00 2001 From: "aaronl%netscape.com" Date: Wed, 27 Mar 2002 04:43:52 +0000 Subject: [PATCH] Bug 124946. F6 and Ctrl+tab no longer correctly cycles through frames. r=bryner, r=rjesup, sr=hewitt, a=asa git-svn-id: svn://10.0.0.236/trunk@117595 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/events/src/nsEventStateManager.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/content/events/src/nsEventStateManager.cpp b/mozilla/content/events/src/nsEventStateManager.cpp index 534e00185b7..22b0be4cd31 100644 --- a/mozilla/content/events/src/nsEventStateManager.cpp +++ b/mozilla/content/events/src/nsEventStateManager.cpp @@ -4753,14 +4753,14 @@ nsEventStateManager::GetNextDocShell(nsIDocShellTreeNode* aNode, NS_ASSERTION(aResult, "null out pointer"); PRInt32 numChildren = 0; + *aResult = nsnull; + aNode->GetChildCount(&numChildren); - if (numChildren == 0) { - *aResult = nsnull; - return; + if (numChildren) { + aNode->GetChildAt(0, aResult); + if (*aResult) + return; } - aNode->GetChildAt(0, aResult); - if (*aResult) - return; nsCOMPtr curNode = aNode; while (curNode) {