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
This commit is contained in:
@@ -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<nsIDocShellTreeNode> curNode = aNode;
|
||||
while (curNode) {
|
||||
|
||||
Reference in New Issue
Block a user