Bug 1784067 [Linux] Fix build without Wayland r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D154632
This commit is contained in:
stransky 2022-08-16 09:27:42 +00:00
Родитель 4b2e2dc206
Коммит 232c2c4865
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1200,7 +1200,7 @@ void nsWindow::HideWaylandPopupWindow(bool aTemporaryHide,
if (mPopupClosed) {
LOG(" Clearing mMoveToRectPopupSize\n");
mMoveToRectPopupSize = {};
#ifdef MOZ_WAYLAND
if (moz_container_wayland_is_waiting_to_show(mContainer)) {
// We need to clear rendering queue, see Bug 1782948.
LOG(" popup failed to show by Wayland compositor, clear rendering "
@ -1208,6 +1208,7 @@ void nsWindow::HideWaylandPopupWindow(bool aTemporaryHide,
moz_container_wayland_clear_waiting_to_show_flag(mContainer);
ClearRenderingQueue();
}
#endif
}
}
@ -1261,6 +1262,7 @@ void nsWindow::WaylandPopupHideTooltips() {
}
void nsWindow::WaylandPopupCloseOrphanedPopups() {
#ifdef MOZ_WAYLAND
LOG("nsWindow::WaylandPopupCloseOrphanedPopups");
MOZ_ASSERT(mWaylandToplevel == nullptr, "Should be called on toplevel only!");
@ -1276,6 +1278,7 @@ void nsWindow::WaylandPopupCloseOrphanedPopups() {
}
popup = popup->mWaylandPopupNext;
}
#endif
}
// We can't show popups with remote content or overflow popups