Bug 970747 - 4/6 - Make LayerTransactionParent::RecvUpdate error out if RemoveChild fails - r=mattwoodrow

This commit is contained in:
Benoit Jacob 2014-02-21 16:50:25 -05:00
parent 2ad50f33a8
commit 409c751152

View File

@ -441,10 +441,11 @@ LayerTransactionParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
return false;
}
ContainerLayerComposite* container = ShadowContainer(orc)->AsContainerLayerComposite();
if (!container) {
if (!container ||
!container->RemoveChild(childLayer))
{
return false;
}
container->RemoveChild(childLayer);
break;
}
case Edit::TOpRepositionChild: {