mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Backed out changeset 1d82f63f06e7 (bug 1184217) for Marionette crashes.
This commit is contained in:
parent
fe819ad8d7
commit
d392a7f047
@ -266,14 +266,14 @@ DocAccessibleParent::Destroy()
|
||||
}
|
||||
|
||||
bool
|
||||
DocAccessibleParent::CheckDocTreeInternal() const
|
||||
DocAccessibleParent::CheckDocTree() const
|
||||
{
|
||||
size_t childDocs = mChildDocs.Length();
|
||||
for (size_t i = 0; i < childDocs; i++) {
|
||||
if (!mChildDocs[i] || mChildDocs[i]->mParentDoc != this)
|
||||
return false;
|
||||
|
||||
if (!mChildDocs[i]->CheckDocTreeInternal()) {
|
||||
if (!mChildDocs[i]->CheckDocTree()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -281,23 +281,5 @@ DocAccessibleParent::CheckDocTreeInternal() const
|
||||
return true;
|
||||
}
|
||||
|
||||
const DocAccessibleParent*
|
||||
DocAccessibleParent::CheckTopDoc() const
|
||||
{
|
||||
const DocAccessibleParent* doc = this;
|
||||
while (doc->ParentDoc()) {
|
||||
doc = doc->ParentDoc();
|
||||
}
|
||||
|
||||
MOZ_DIAGNOSTIC_ASSERT(doc->mTopLevel);
|
||||
|
||||
return doc;
|
||||
}
|
||||
|
||||
bool
|
||||
DocAccessibleParent::CheckDocTree() const
|
||||
{
|
||||
return CheckTopDoc()->CheckDocTreeInternal();
|
||||
}
|
||||
} // a11y
|
||||
} // mozilla
|
||||
|
@ -152,8 +152,6 @@ private:
|
||||
const nsTArray<AccessibleData>& aNewTree, uint32_t aIdx,
|
||||
uint32_t aIdxInParent);
|
||||
MOZ_WARN_UNUSED_RESULT bool CheckDocTree() const;
|
||||
MOZ_WARN_UNUSED_RESULT bool CheckDocTreeInternal() const;
|
||||
const DocAccessibleParent* CheckTopDoc() const;
|
||||
|
||||
nsTArray<DocAccessibleParent*> mChildDocs;
|
||||
DocAccessibleParent* mParentDoc;
|
||||
|
Loading…
Reference in New Issue
Block a user