Bug 413718. Warning indicates cache problem. Never ran into same child we started from. r=evan, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@243982 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8895853137
commit
8ff013e71d
@ -829,7 +829,7 @@ NS_IMETHODIMP nsAccessible::TestChildCache(nsIAccessible *aCachedChild)
|
||||
// It will assert if not all the children were created
|
||||
// when they were first cached, and no invalidation
|
||||
// ever corrected parent accessible's child cache.
|
||||
if (mAccChildCount == eChildCountUninitialized) {
|
||||
if (mAccChildCount <= 0) {
|
||||
return NS_OK;
|
||||
}
|
||||
nsCOMPtr<nsIAccessible> sibling = mFirstChild;
|
||||
|
||||
@ -116,7 +116,7 @@ void nsOuterDocAccessible::CacheChildren()
|
||||
return;
|
||||
}
|
||||
|
||||
SetFirstChild(nsnull);
|
||||
InvalidateChildren();
|
||||
mAccChildCount = 0;
|
||||
|
||||
// In these variable names, "outer" relates to the nsOuterDocAccessible
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user