mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 968001 - In OpSetRoot, check that the new root is a root - r=nical
This commit is contained in:
parent
286ab8ebd3
commit
513b00930e
@ -390,7 +390,11 @@ LayerTransactionParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
|
||||
case Edit::TOpSetRoot: {
|
||||
MOZ_LAYERS_LOG(("[ParentSide] SetRoot"));
|
||||
|
||||
mRoot = AsLayerComposite(edit.get_OpSetRoot())->AsLayer();
|
||||
Layer* newRoot = AsLayerComposite(edit.get_OpSetRoot())->AsLayer();
|
||||
if (newRoot->GetParent()) {
|
||||
return false;
|
||||
}
|
||||
mRoot = newRoot;
|
||||
break;
|
||||
}
|
||||
case Edit::TOpInsertAfter: {
|
||||
|
Loading…
Reference in New Issue
Block a user