mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1892131 - Null-check mWidget in GtkCompositorWidget::GetTransparentRegion(). r=gfx-reviewers,aosmond
Presumably with the GPU process enabled there's no widget. This preserves the behavior. Differential Revision: https://phabricator.services.mozilla.com/D207825
This commit is contained in:
parent
446bdd4d5b
commit
7d4a29326b
@ -143,7 +143,9 @@ bool GtkCompositorWidget::SetEGLNativeWindowSize(
|
||||
LayoutDeviceIntRegion GtkCompositorWidget::GetTransparentRegion() {
|
||||
LayoutDeviceIntRegion fullRegion(
|
||||
LayoutDeviceIntRect(LayoutDeviceIntPoint(), GetClientSize()));
|
||||
fullRegion.SubOut(mWidget->GetOpaqueRegion());
|
||||
if (mWidget) {
|
||||
fullRegion.SubOut(mWidget->GetOpaqueRegion());
|
||||
}
|
||||
return fullRegion;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user