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