Ensure added code only runs when using a Compositor, not in e10s.

This commit is contained in:
Ali Juma 2011-12-15 16:16:38 -05:00
Родитель 5e62d4fd13
Коммит d1b64f55b8
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -287,7 +287,9 @@ ShadowLayersParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
MOZ_LAYERS_LOG(("[ParentSide] SetRoot"));
mRoot = AsShadowLayer(edit.get_OpSetRoot())->AsContainer();
mLayerManager->SetRoot(mRoot);
if (mHost->GetCompositorParent()) {
mLayerManager->SetRoot(mRoot);
}
break;
}
case Edit::TOpInsertAfter: {