mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 1d82f63f06e7 (bug 1184217) for Marionette crashes.
This commit is contained in:
parent
1116e55dd0
commit
a85dc7f568
@ -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