[LayoutNG] Check for solid edges for layout opportunities.
Previously we weren't checking for "solid" edges on layout opportunities within the NGExclusionSpace. This had the effect of us thinking a particular layout opportunity was valid (when one edge wasn't against any floats). This caused us to place the element in such a way that it was "avoiding" a float higher up in the document (when it shouldn't have). This introduces a "NGClosedArea" struct, which keeps track of the "NGEdges" vectors so that before considering a layout opportunity as valid, we check it has solid edges. Bug: 959567 Change-Id: If6481a23279eee7a1b188ec4cf5129b503935cc7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1603303 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#658748}
Showing
Please register or sign in to comment