mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00

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
…
…
…
…
…
…
…
…
…
…
…
…
An explanation of the Firefox Source Code Directory Structure and links to project pages with documentation can be found at: https://firefox-source-docs.mozilla.org/contributing/directory_structure.html For information on how to build Firefox from the source code and create the patch see: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html If you have a question about developing Firefox, and can't find the solution on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel. Nightly development builds can be downloaded from: https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/ - or - https://www.mozilla.org/firefox/channel/desktop/#nightly Keep in mind that nightly builds, which are used by Firefox developers for testing, may be buggy.
Description
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Languages
JavaScript
32.3%
C++
25.4%
HTML
21%
C
10.8%
Python
2.8%
Other
7.2%