mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1188415 - add document tree consistancy checks to more message handlers r=davidb
This commit is contained in:
parent
f8aa5202e5
commit
0e2e66f767
@ -19,6 +19,8 @@ DocAccessibleParent::RecvShowEvent(const ShowEventData& aData)
|
||||
if (mShutdown)
|
||||
return true;
|
||||
|
||||
CheckDocTree();
|
||||
|
||||
if (aData.NewTree().IsEmpty()) {
|
||||
NS_ERROR("no children being added");
|
||||
return false;
|
||||
@ -48,6 +50,8 @@ DocAccessibleParent::RecvShowEvent(const ShowEventData& aData)
|
||||
}
|
||||
#endif
|
||||
|
||||
CheckDocTree();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -118,6 +122,8 @@ DocAccessibleParent::RecvHideEvent(const uint64_t& aRootID)
|
||||
parent->RemoveChild(root);
|
||||
root->Shutdown();
|
||||
|
||||
CheckDocTree();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -190,9 +196,12 @@ DocAccessibleParent::RecvBindChildDoc(PDocAccessibleParent* aChildDoc, const uin
|
||||
if (!aID)
|
||||
return false;
|
||||
|
||||
CheckDocTree();
|
||||
|
||||
auto childDoc = static_cast<DocAccessibleParent*>(aChildDoc);
|
||||
bool result = AddChildDoc(childDoc, aID, false);
|
||||
MOZ_ASSERT(result);
|
||||
CheckDocTree();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user