зеркало из https://github.com/mozilla/gecko-dev.git
backout bug 1326084
This commit is contained in:
Родитель
a643925da8
Коммит
47cd47695a
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче