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
This commit is contained in:
stransky 2022-08-18 09:33:24 +00:00
Родитель 3062502a96
Коммит fd3ef30a3c
1 изменённых файлов: 0 добавлений и 10 удалений

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

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