[LayoutNG] Force relayout when constraint spaces change.
This patch reuses a lot of the logic we currently have to skip layout in LayoutNGMixin::CachedLayoutResult. It also moves this logic from ng_length_utils.cc to ng_layout_utils.cc We also make sure that if the constraint spaces don't match we force a layout of the child. Previously we were only performing a LayoutIfNeeded in this case, and as a result children not respecting the available size, etc. Bug: 635619, 928672 Change-Id: I36e248f1a7413f5becd2b39bdd2db25ca2843559 Reviewed-on: https://chromium-review.googlesource.com/c/1476263 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:Christian Biesinger <cbiesinger@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#633839}
Showing
Please register or sign in to comment