gecko-dev/layout
Daniel Holbert 080e18fa47 Bug 1663722: Make nsPageSequenceFrame gracefully handle SizeToContent calls. r=emilio
nsPageSequenceFrame does a thing where it grows its desired size to fit the
AvailableISize and ComputedBSize (under the assumption that those are the
actual dimensions of our scrollport, which it wants to make maximal use of).

This behavior causes trouble when it's reflowed under the privileged
'sizeToContent' JS API.  That API makes us reflow with nscoord_MAX as the
viewport's ComputedBSize(), and this nscoord_MAX value gets passed down to be
the nsPageSequenceFrame's ComputedBSize as well.  When we reach the code in
question, we dutifully grow the desired size to that bogus huge value, which is
clearly wrong.

This patch addresses this issue by simply declining to grow the desired size in
the scenario where ComputedBSize() is unconstrained.  This leaves us with
reasonable values for our desired size (which are actually based on the
content, which makes it the right thing to do for the purpose of a
SizeToContent() call).

Differential Revision: https://phabricator.services.mozilla.com/D135762
2022-01-13 06:08:51 +00:00
..
base Bug 1749004. Call CancelManagedPostRefreshObservers after frame tree is destroyed. r=emilio 2022-01-12 12:59:44 +00:00
build Bug 1707963: Let the PermissionManager be initialized lazily but not after shutdown started. r=permissions-reviewers,timhuang,janv 2021-12-14 18:39:41 +00:00
docs Bug 1735445 - Add a few more examples to the CSS Gap Decorations draft spec. NPOTB DONTBUILD 2021-12-18 16:58:27 +00:00
forms Bug 1746758 - Correctly compute meter position in nsNativeBasicTheme. r=spohl 2021-12-22 18:16:21 +00:00
generic Bug 1663722: Make nsPageSequenceFrame gracefully handle SizeToContent calls. r=emilio 2022-01-13 06:08:51 +00:00
inspector Bug 1746683 - Remove hwba since it's not a thing (hwb function supports alpha). 2021-12-20 02:53:31 +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 1747922 - Rename StyleMathMLMathVariant -> StyleMathVariant. 2021-12-30 02:35:54 +01:00
media
painting Bug 1748216 - Ensure that we invalidate previously decoded images without a surface ready. r=jrmuizel 2022-01-04 22:01:26 +00:00
printing Bug 1663722: Make nsPageSequenceFrame gracefully handle SizeToContent calls. r=emilio 2022-01-13 06:08:51 +00:00
reftests Backed out changeset 68e326b1f0de (bug 1746662) for causing reftest failures 2021-12-22 09:17:42 +02:00
style Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-11 15:49:03 +00:00
svg Bug 1743761 - Ensure we invalidate substituted images when the preferred size is ready. r=tnikkel 2021-12-03 03:14:01 +00:00
tables Bug 1741148 - part 3: Make users of nsINode::ComputeIndexOf_Deprecated() use nsINode::ComputeIndexOf() if the result is not set to int32_t nor return as int32_t r=smaug 2021-12-09 11:55:36 +00:00
tools Bug 1744091 - Update test harnesses to run with fission by default, except on android; r=perftest-reviewers,releng-reviewers,jmaher,AlexandruIonescu 2022-01-07 20:30:45 +00:00
xul Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-11 15:49:03 +00:00
moz.build Bug 1728240 - Remove DrawTargetWrapAndRecord and gfx.2d.recording pref. r=jrmuizel 2021-08-31 02:03:58 +00:00