зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3062502a96
Коммит
fd3ef30a3c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче