mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 570314. Don't crash when GetXULWindowWidget doesn't find one. r=roc
This commit is contained in:
parent
df40488589
commit
fdd1be4180
@ -967,9 +967,7 @@ LayerManager*
|
||||
nsChildView::GetLayerManager()
|
||||
{
|
||||
nsCocoaWindow* window = GetXULWindowWidget();
|
||||
if (!window)
|
||||
return nsnull;
|
||||
if (window->GetAcceleratedRendering() != mUseAcceleratedRendering) {
|
||||
if (window && window->GetAcceleratedRendering() != mUseAcceleratedRendering) {
|
||||
mLayerManager = NULL;
|
||||
mUseAcceleratedRendering = window->GetAcceleratedRendering();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user