Skip to content

Commit

Permalink
Bug 1892131 - Null-check mWidget in GtkCompositorWidget::GetTranspare…
Browse files Browse the repository at this point in the history
…ntRegion(). 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
  • Loading branch information
emilio committed Apr 18, 2024
1 parent b0b70ea commit fa764e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion widget/gtk/GtkCompositorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fa764e4

Please sign in to comment.