commit | a2f97b8f136c6c92df755aebd6360dd4b55da062 | [log] [tgz] |
---|---|---|
author | Morten Stenshorne <mstensho@opera.com> | Wed Sep 13 21:11:55 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Sep 13 21:11:55 2017 |
tree | 145d995a7dd99052268d68f937dce8eada3f4861 | |
parent | 098c08ab49d95d4e53e2d86f9efdadd70fb7490e [diff] |
LayoutNG] Calculate available fragmentainer space correctly. When processing children, we forgot to subtract the BFC offset. We just used the value returned from the constraint space's FragmentainerSpaceAvailable() directly. Renamed that method in both the constraint space and the builder to FragmentainerSpaceAtBfcStart(), to make it clear that this value doesn't necessarily return the space available to the block currently being laid out. Added FragmentainerSpaceAvailable() to the block algorithm instead, and also moved IsOutOfSpace() into the class. Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: If1232a1a33dd4c7655339eed2a88104b98f06bc0 Reviewed-on: https://chromium-review.googlesource.com/664805 Commit-Queue: Morten Stenshorne <mstensho@opera.com> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#501750}
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 .