gecko-dev/layout
Timothy Guan-tin Chien 23f97d18fe Bug 1519917 - Consider <menulist> with sizetopopup unset equal to sizetopopup="pref" r=NeilDeakin
sizetopopup is set to "pref" by default by the menulist XBL binding, however
when converting the binding to custom element, it did not set the attribute value
at a time that is early enough.

This patch updates nsMenuPopupFrame and nsMenuFrame so that it considers
<menulist> with unset sizetopopup attribute as equal to "pref" to avoid
the problem above.

This reftest
layout/reftests/xul/menulist-shrinkwrap-2.xul
can detect this failure.

The sizetopopup attribute is never meant to be set dynamically;
the fix here does not allow us to do so.

Differential Revision: https://phabricator.services.mozilla.com/D16410

--HG--
extra : moz-landing-system : lando
2019-01-16 16:30:45 +00:00
..
base Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-16 06:56:15 +02:00
build Bug 1519636 - Reformat everything to the Google coding style r=Ehsan 2019-01-16 08:50:07 +00:00
doc Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
forms Bug 1441308 - Split out document pieces of WebRenderLayerManager r=jrmuizel 2019-01-07 21:33:10 +00:00
generic Bug 1519636 - Reformat everything to the Google coding style r=Ehsan 2019-01-16 08:50:07 +00:00
inspector Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
ipc Bug 1441308 - Split out document pieces of WebRenderLayerManager r=jrmuizel 2019-01-07 21:33:10 +00:00
mathml Bug 1441308 - Split out document pieces of WebRenderLayerManager r=jrmuizel 2019-01-07 21:33:10 +00:00
media
painting Merge mozilla-inbound to mozilla-central. a=merge 2019-01-16 06:49:11 +02:00
printing Bug 1517241 - Fix yet another MSVC-only bustage. 2019-01-03 19:34:39 +01:00
reftests Bug 957915 - Handle calc(%) on tables. r=mats 2019-01-15 19:39:23 +00:00
style Bug 957915 - Handle calc(%) on tables. r=mats 2019-01-15 19:39:23 +00:00
svg Bug 1517197. Fix SVG masking and clipping regression. r=mattwoodrow 2019-01-15 00:20:52 +00:00
tables Bug 957915 - Handle calc(%) on tables. r=mats 2019-01-15 19:39:23 +00:00
tools Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs 2019-01-11 12:44:20 +01:00
xul Bug 1519917 - Consider <menulist> with sizetopopup unset equal to sizetopopup="pref" r=NeilDeakin 2019-01-16 16:30:45 +00:00
moz.build Bug 1512914 - Add an --enable-layout-debugger configure option r=froydnj 2018-12-10 15:47:36 +00:00