Bug 1848526 - Clear descendant intrinsics too when opening a popup. r=tnikkel,layout-reviewers

This is probably testable, but I don't know how we'd make the test
reliable (we haven't found particularly reliable STR yet, see comments).

Differential Revision: https://phabricator.services.mozilla.com/D193827
This commit is contained in:
Emilio Cobos Álvarez 2023-11-18 10:21:10 +00:00
Родитель e5b3731de3
Коммит 819c082c31
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -991,10 +991,10 @@ void nsMenuPopupFrame::ShowPopup(bool aIsContextMenu) {
menu->PopupOpened();
}
// do we need an actual reflow here?
// is SetPopupPosition all that is needed?
PresShell()->FrameNeedsReflow(this, IntrinsicDirty::FrameAndAncestors,
NS_FRAME_IS_DIRTY);
// We skip laying out children if we're closed, so make sure that we do a
// full dirty reflow when opening to pick up any potential change.
PresShell()->FrameNeedsReflow(
this, IntrinsicDirty::FrameAncestorsAndDescendants, NS_FRAME_IS_DIRTY);
if (mPopupType == PopupType::Menu) {
nsCOMPtr<nsISound> sound(do_GetService("@mozilla.org/sound;1"));