From fd3ef30a3ccb54b910d6df12999dad2eeb197441 Mon Sep 17 00:00:00 2001 From: stransky Date: Thu, 18 Aug 2022 09:33:24 +0000 Subject: [PATCH] Bug 1784873 [Wayland] Remove outdated check for move-to-rect r=emilio Remove outdated check for move-to-rect. It's redundant and it's implemented in more complex way by nsWindow::WaylandPopupCheckAndGetAnchor() now. Differential Revision: https://phabricator.services.mozilla.com/D154882 --- widget/gtk/nsWindow.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 01fde06dc4cc..e69f6ba8248f 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -1834,16 +1834,6 @@ void nsWindow::UpdateWaylandPopupHierarchy() { // popups are adjacent. return false; } - // We use move_to_rect when: - // - Popup is tooltip - // - Popup is anchored, i.e. it has an anchor defined by layout - // (mPopupAnchored). - // - It's first popup. - bool useIt = mPopupType == ePopupTypeTooltip || popup->mPopupAnchored || - popup->WaylandPopupIsFirst(); - if (!useIt) { - return false; - } if (popup->WaylandPopupIsFirst() && popup->WaylandPopupFitsToplevelWindow()) { // Workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/1986