gecko-dev/layout
Emilio Cobos Álvarez 7de4ce1232 Bug 1763743 - Don't bail out from PresShell::DoScrollContentIntoView if there are no in-document scrollable ancestors. r=hiro
There are cases where we want to scroll across documents (like
scrollIntoView), and bailing out for those is incorrect. This
usually can't happen because in HTML documents we always have a root
scroll frame, but for fixed positioned elements it can happen, as those
are not parented to it.

This came up in https://github.com/w3c/csswg-drafts/issues/5492, and
fixes the only case where Firefox and Safari differ (C).

ScrollFrameRectIntoView knows how to deal with non-scroll-frames, and
takes care of jumping across documents if necessary, so passing the root
frame is fine. We only needed to walk out the parent chain to be able to
accumulate all our continuation bounds relative to the same frame.

In practice the bail out code should now be unreachable. Add an
assertion to that effect.

Tests for this are already upstream in WPT, and pass with this patch,
see:

 * https://github.com/web-platform-tests/wpt/pull/33572
 * https://github.com/web-platform-tests/wpt/pull/33633

Differential Revision: https://phabricator.services.mozilla.com/D143250
2022-04-20 08:29:51 +00:00
..
base Bug 1763743 - Don't bail out from PresShell::DoScrollContentIntoView if there are no in-document scrollable ancestors. r=hiro 2022-04-20 08:29:51 +00:00
build Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert 2022-01-17 11:10:05 +00:00
docs Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky 2022-02-03 18:34:58 +00:00
forms Bug 1755565 - Implement `contain: inline-size`. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
generic Bug 1755565 - Implement `contain: inline-size`. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
inspector Bug 1763644 - Add basic @container rule parsing and boilerplate. r=firefox-style-system-reviewers,layout-reviewers,boris 2022-04-08 04:15:40 +00:00
ipc Bug 1728914 - Convert a few uses of AsLayerManager to use WebRenderLayerManager. r=gfx-reviewers,aosmond 2021-09-05 02:16:38 +00:00
mathml Bug 1756474 - Add locking to gfxPlatformFontList and gfxFontFamily, to allow use from worker threads. r=lsalzman 2022-04-19 14:20:21 +00:00
media
painting Bug 1745834 - When adding a 3D transform to WebRenderScrollData, project it to 2D when appropriate. r=tnikkel 2022-04-16 01:37:38 +00:00
printing Bug 1760836 - Support printing to an nsIOutputStream. r=jfkthame,jrmuizel,webdriver-reviewers,geckoview-reviewers,agi 2022-03-30 18:51:58 +00:00
reftests Bug 1758665 - Reorganize placeholder/editor/preview styles. r=tgiles 2022-04-20 07:28:45 +00:00
style Bug 1758665 - Reorganize placeholder/editor/preview styles. r=tgiles 2022-04-20 07:28:45 +00:00
svg Bug 1755565 - Implement `contain: inline-size`. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
tables Bug 1757110: Refactor `BCCorners::corners` and `BCCellBorders::borders` to use `mozilla::UniquePtr` r=dholbert 2022-03-25 19:19:15 +00:00
tools Bug 1764354 - Propagate color-scheme preference to SVG images on chrome documents. r=aosmond 2022-04-17 20:38:01 +00:00
xul Bug 1764354 - Propagate color-scheme preference to SVG images on chrome documents. r=aosmond 2022-04-17 20:38:01 +00:00
moz.build Bug 1751948 - Part 3: Build IPDL sources within the directory they were declared, r=glandium 2022-02-28 21:01:47 +00:00