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:
Emilio Cobos Álvarez 2024-04-18 02:43:23 +00:00
parent 446bdd4d5b
commit 7d4a29326b

View File

@ -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;
}