Bug 1769900 - Add more logs of window size sanity check around nsWindow r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D146658
This commit is contained in:
sotaro
2022-05-18 15:15:41 +00:00
parent 1280cfc4b5
commit a6fbfbb8da
4 changed files with 45 additions and 2 deletions

View File

@@ -78,8 +78,7 @@ bool WebRenderLayerManager::Initialize(
LayoutDeviceIntSize size = mWidget->GetClientSize();
// Check widget size
if (size.width < 0 || size.width > wr::MAX_RENDER_TASK_SIZE ||
size.height < 0 || size.height > wr::MAX_RENDER_TASK_SIZE) {
if (!wr::WindowSizeSanityCheck(size.width, size.height)) {
gfxCriticalNoteOnce << "Widget size is not valid " << size
<< " isParent: " << XRE_IsParentProcess();
}