gecko-dev/layout
Emilio Cobos Álvarez 275707a51b Bug 1665476 - Remove nsRootBoxFrame to unify background propagation between XUL and non-XUL documents. r=layout-reviewers,mats
It's unused on mozilla-central, and Thunderbird can just use the canvas
frame as regular (X)HTML documents, so just use a canvas frame instead
of an nsRootBoxFrame for XUL as well.

nsRootBoxFrame was needed because of various XUL-specific things like
tooltips and so on lived there. But with the move away from XUL, that
functionality has been added to nsCanvasFrame already, behind a
principal check instead.

This also allows simplifying our background propagation setup, which was
only half-working for XUL documents (this bug is a consequence of that).

With this, most of the callers of nsCSSRendering::IsCanvasFrame can go.
They're only two of the frames that would return true for that that
actually paint backgrounds (nsCanvasFrame and nsRootBoxFrame), so the
codepaths in display list building and painting can just check
frame->IsCanvasFrame() instead.

The remaining caller to that function is
nsContainerFrame::SyncWindowProperties, and the change is also legit, in
the sense that the only thing SyncWindowProperties() really cares about
is propagating the max/min-width constraints from the root element's
style to the view/widget, and the only frame that would return true from
IsCanvasFrame and have a view is the viewport frame which is the root of
the frame tree.

Differential Revision: https://phabricator.services.mozilla.com/D90846
2021-08-01 21:57:28 +00:00
..
base Bug 1665476 - Remove nsRootBoxFrame to unify background propagation between XUL and non-XUL documents. r=layout-reviewers,mats 2021-08-01 21:57:28 +00:00
build Bug 1722803 - Always initialize TimelineConsumers at startup. r=nika 2021-07-29 01:53:31 +00:00
docs
forms Bug 1716212 Part 2 - Carry nsComboboxControlFrame's line-height to nsComboboxDisplayFrame when it has auto block-size. r=emilio 2021-07-28 18:41:19 +00:00
generic Bug 1665476 - Remove nsRootBoxFrame to unify background propagation between XUL and non-XUL documents. r=layout-reviewers,mats 2021-08-01 21:57:28 +00:00
inspector Bug 1722400 - Remove layout.css.image-set.enabled. r=TYLin 2021-07-27 06:59:39 +00:00
ipc Backed out 3 changesets (bug 1722258) for causing Bug 1722935. a=backout 2021-07-29 20:19:48 +03:00
mathml Bug 1720804 - Part 1: Move majority of the display list code inside mozilla namespace r=mattwoodrow 2021-07-19 11:28:20 +00:00
media
painting Bug 1665476 - Remove nsRootBoxFrame to unify background propagation between XUL and non-XUL documents. r=layout-reviewers,mats 2021-08-01 21:57:28 +00:00
printing Backed out changeset de2e92cbb94d (bug 1720152) for WPT failures in html/browsers/windows/iframe-cross-origin-print.sub.html. CLOSED TREE 2021-07-29 05:52:23 +03:00
reftests Bug 1665476 - Remove nsRootBoxFrame to unify background propagation between XUL and non-XUL documents. r=layout-reviewers,mats 2021-08-01 21:57:28 +00:00
style Bug 1652560 - Remove the old profiler label frames code in the servo codebase and replace it with the new API r=emilio 2021-07-30 21:49:22 +00:00
svg Bug 1720804 - Part 1: Move majority of the display list code inside mozilla namespace r=mattwoodrow 2021-07-19 11:28:20 +00:00
tables Bug 1717655 - Fix bevelRect size calculation r=nical 2021-07-21 15:05:35 +00:00
tools Bug 1718755 - Ensure the reftest harness at least ticks the refresh driver once. r=tnikkel 2021-07-20 14:10:58 +00:00
xul Bug 1665476 - Remove nsRootBoxFrame to unify background propagation between XUL and non-XUL documents. r=layout-reviewers,mats 2021-08-01 21:57:28 +00:00
moz.build