Bug 402908. Hang in GetNextState() when parent has single child. r=evan.yan, a=dsicore

git-svn-id: svn://10.0.0.236/trunk@239080 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net
2007-11-09 18:43:08 +00:00
parent c55a55c8d7
commit 1eb8a2121b

View File

@@ -2931,7 +2931,8 @@ nsAccessible::GetNextWithState(nsIAccessible *aStart, PRUint32 matchState)
current->GetNextSibling(getter_AddRefs(look));
if (!look) {
current->GetParent(getter_AddRefs(look));
current.swap(look);
current = look;
look = nsnull;
continue;
}
}