gecko-dev/layout
Emilio Cobos Álvarez ac2f80304e Bug 1568536 - Don't propagate viewport styles from display: none or display: contents elements. r=dholbert
Resolution is at:

 * https://github.com/w3c/csswg-drafts/issues/3779#issuecomment-481762912

Tests are at https://chromium-review.googlesource.com/c/chromium/src/+/1547974,
I'll make sure to wait until they're in the tree and ensure they're passing.

Note that we need to ensure in the frame constructor that the document element
is styled _before_ calling UpdateViewportScrollStylesOverride(). This saves
duplicated work (since ResolveStyleLazily throws away the style).

ResolveStyleLazily already returns out of date styles, unless the element is not
styled yet, or is in a `display: none` subtree, in which case it computes and
returns a new (up-to-date) style.

So the switch to the FFI call only should change behavior for the display: none
subtree case (since we ensure the unstyled case isn't hit by styling the
document earlier). But that case is one of the cases we're interested in
changing, conveniently.

Depends on D40080

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

--HG--
extra : moz-landing-system : lando
2019-08-16 11:43:36 +00:00
..
base Bug 1568536 - Don't propagate viewport styles from display: none or display: contents elements. r=dholbert 2019-08-16 11:43:36 +00:00
build Bug 1573364 - Convert svg.new-getBBox.enabled to a static pref. r=heycam 2019-08-13 04:55:09 +00:00
doc Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio 2019-04-16 07:25:10 +00:00
forms Bug 1571764 - Subtract combobox display frame border-padding when inferring the height from line-height. r=mats,jfkthame 2019-08-15 09:41:15 +00:00
generic Bug 1568536 - Don't propagate viewport styles from display: none or display: contents elements. r=dholbert 2019-08-16 11:43:36 +00:00
inspector Bug 1574060 - Implement layout for 'display: flow-root list-item'. r=emilio 2019-08-16 06:30:24 +00:00
ipc Bug 1556548 - Rename RenderFrame to RemoteLayerTreeOwner. r=mattwoodrow 2019-06-02 13:51:33 -04:00
mathml Bug 1574087. Make MathML length, dir, display, displaystyle and mathvariant case insensitive. r=emilio 2019-08-15 18:44:36 +00:00
media
painting Bug 1554777 - Use SIZE_AVAILABLE rather than loaded to figure out whether to try to draw a border image. r=tnikkel 2019-08-15 19:03:06 +00:00
printing Bug 1570358: Check validity of enums before playing back Moz2D RecordedEvents. r=jrmuizel 2019-08-05 13:08:30 +00:00
reftests Bug 1574087. Make MathML length, dir, display, displaystyle and mathvariant case insensitive. r=emilio 2019-08-15 18:44:36 +00:00
style Bug 1480146 - Add memory reporting for the inline style cache. r=heycam 2019-08-16 10:56:25 +00:00
svg Merge inbound to mozilla-central. a=merge 2019-08-15 12:45:55 +03:00
tables Bug 1570982 - remove `CPP_THROW_NEW`; r=glandium 2019-08-14 01:32:41 +00:00
tools Bug 1508177 - Reftests that check scrollbars are properly appeared by the difference between visual and layout viewports. r=botond,tnikkel 2019-08-13 22:37:54 +00:00
xul Bug 1570982 - remove `CPP_THROW_NEW`; r=glandium 2019-08-14 01:32:41 +00:00
moz.build Bug 1521673 - Go through layout/tools/layout-debug even when tests are disabled. r=dmajor 2019-01-22 14:30:39 +00:00