mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 970747 - 6/6 - Make LayerTransactionParent::RecvUpdate error out if RepositionChild fails - r=mattwoodrow
This commit is contained in:
parent
0c5e25c738
commit
7212d43233
@ -457,10 +457,11 @@ LayerTransactionParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
|
||||
return false;
|
||||
}
|
||||
ContainerLayerComposite* container = ShadowContainer(orc)->AsContainerLayerComposite();
|
||||
if (!container) {
|
||||
if (!container ||
|
||||
!container->RepositionChild(child, ShadowAfter(orc)->AsLayer()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
container->RepositionChild(child, ShadowAfter(orc)->AsLayer());
|
||||
break;
|
||||
}
|
||||
case Edit::TOpRaiseToTopChild: {
|
||||
@ -472,10 +473,11 @@ LayerTransactionParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
|
||||
return false;
|
||||
}
|
||||
ContainerLayerComposite* container = ShadowContainer(rtc)->AsContainerLayerComposite();
|
||||
if (!container) {
|
||||
if (!container ||
|
||||
!container->RepositionChild(child, nullptr))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
container->RepositionChild(child, nullptr);
|
||||
break;
|
||||
}
|
||||
case Edit::TCompositableOperation: {
|
||||
|
Loading…
Reference in New Issue
Block a user