commit | ad6caa44d0d0d574f94e6b2513aeae37f85132ef | [log] [tgz] |
---|---|---|
author | Ian Kilpatrick <ikilpatrick@chromium.org> | Fri Oct 13 07:19:31 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 13 07:19:31 2017 |
tree | 746722bf6122d72e8c01148aee9af1e1ea34b2ae | |
parent | 5e0df1325d84eea029d2d6d08458965553780c0a [diff] |
Reland [LayoutNG] Handle 'auto' for new formatting contexts within a BFC. This is a reland of: https://chromium-review.googlesource.com/c/chromium/src/+/680176 Which got pre-emptively reverted in: https://chromium-review.googlesource.com/c/chromium/src/+/704854 This implements our current behaviour for 'auto' sized FCs within a BFC. We need to perform layout twice under two scenarios: 1. 'auto' inline size child. In this case we need to perform layout once, and if the child doesn't fit, we perform layout a second time with an "open" layout opportunity, so we can guarantee it will fit. 2. Non-adjoining margin strut and unpositioned floats/current layout. In this case we need to perform a relayout as the BFCOffset where floats will be positioned will change. This happens if the child doesn't fit on the "top" of the exclusion space. This also adds more TODOs everywhere which we can handle later. I kept this as small as possible to keep sanity. :) TBR=eae@chromium.org Bug: 635619 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: I4ce9e633a53402c23a56d9c61eafe9ec3662b898 Reviewed-on: https://chromium-review.googlesource.com/717538 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#508633}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .