mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-11 14:28:42 +00:00
Ting-Yu Lin
9414e316e9
Bug 1627125 Part 6 - Redesign the logic that computes flex container's final size with "box-decoration-break: clone" considered. r=dholbert
By passing unconstrained aAvailableBSizeForContent to DoFlexLayout, we can get the flex container's desired content-box size as if there's no pagination. We could then use this content-box size and maxBlockEndEdgeOfChildren to rewrite the logic to determine flex container's final size. I still maintain the compatibility with block frame that if the flex container is running out of block-size, it can still become incomplete and request an zero block-size continuation. One comment in block frame feels this is wrong, but fixing it is not in the scope of this bug. https://searchfox.org/mozilla-central/rev/4ccefc3181f9d237ef4ca8bd17b4e7c101ddf7b5/layout/generic/nsBlockFrame.cpp#7715-7718 Differential Revision: https://phabricator.services.mozilla.com/D69474
…
…
…
…
…
…
…
…
…
An explanation of the Mozilla 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 Mozilla from the source code and create the patch see: https://firefox-source-docs.mozilla.org/contributing/how_to_contribute_firefox.html If you have a question about developing Mozilla, and can't find the solution on https://developer.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 Mozilla 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.7%
C++
25.3%
HTML
20.9%
C
10.8%
Python
2.8%
Other
7%