Bug 1180688 - Reset the appropriate widget states if creating a compositor fails. r=mstange

This commit is contained in:
Nicolas Silva 2015-07-19 21:50:17 +02:00
Родитель 06fe3194ec
Коммит 8bf8e8aa3f
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1118,6 +1118,10 @@ void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
if (!success || !lf) {
NS_WARNING("Failed to create an OMT compositor.");
DestroyCompositor();
mLayerManager = nullptr;
mCompositorChild = nullptr;
mCompositorParent = nullptr;
mCompositorVsyncDispatcher = nullptr;
return;
}