Bug 413718. Warning indicates cache problem. Never ran into same child we started from. r=evan, a=beltzner

This commit is contained in:
aaronleventhal@moonset.net 2008-01-25 05:52:44 -08:00
Родитель 7934ff3573
Коммит 7ccc93502c
2 изменённых файлов: 2 добавлений и 2 удалений

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

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