Simplify menulist popup layout.
Categories
(Firefox :: Menus, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(2 files)
Assignee | ||
Comment 1•3 years ago
|
||
I decided to split this up from bug 1805414 because it's only
tangentially related to the removal of nsMenuFrame.
We have this sizetopopup attribute and behavior that allows menulists to
be sized to the contents of the popup. The popup also expands to the
menulist rect.
This means that layout is by somewhat cyclic and we need to go out of
our way to support it. However, I think we only care about the first
behavior. We don't have many non-intrinsically-sized menulists, and
if we need we can use HTML <select> instead, which does have that
behavior.
Simplify the setup to make sizetopopup only apply to menulists (we don't
have non-menulist usage anyways), and only work in the "popup depends on
the menulist" direction, not the other way around.
This will allow making the popup a regular out-of-flow element. The
change to test_menulist_paging is not needed (I restored the behavior of
eagerly layout menulists, to fix the <select> popup, but I'd like to fix
that eventually, so I'd rather leave them in, they're harmless).
Comment 3•3 years ago
|
||
Backed out for causing bc failures on browser_selectpopup.js
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
I can't repro this at all on win10 with either native or non-native
menus, nor hacking my way so that all win7 styles apply, nor on win7 by
hand on a VM... So that kinda sucks :(
Let's take this very minor regression in this subtest? I don't think
it's particularly worrisome (the select looks good in the mochitest
failure screenshot and works ok in local testing...).
Depends on D164693
Assignee | ||
Updated•3 years ago
|
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8f61a444ce01
https://hg.mozilla.org/mozilla-central/rev/e61e04de54d1
Description
•