This commit is contained in:
Trevor Saunders 2017-02-03 12:46:16 -05:00
Родитель a643925da8
Коммит 47cd47695a
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -39,7 +39,7 @@ ProxyAccessibleBase<Derived>::Shutdown()
for (uint32_t idx = 0; idx < childCount; idx++)
mChildren[idx]->Shutdown();
} else {
if (mChildren.Length() > 1)
if (mChildren.Length() != 1)
MOZ_CRASH("outer doc doesn't own adoc!");
mChildren[0]->AsDoc()->Unbind();
@ -76,7 +76,9 @@ ProxyAccessibleBase<Derived>::ClearChildDoc(DocAccessibleParent* aChildDoc)
// in SetChildDoc(). This could result in two subsequent calls to
// ClearChildDoc() even though mChildren.Length() == 1.
MOZ_ASSERT(mChildren.Length() <= 1);
mChildren.RemoveElement(aChildDoc);
if (mChildren.RemoveElement(aChildDoc)) {
mOuterDoc = false;
}
}
template <class Derived>