зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1180688 - Reset the appropriate widget states if creating a compositor fails. r=mstange
This commit is contained in:
Родитель
06fe3194ec
Коммит
8bf8e8aa3f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче