[LayoutNG] Don't pass exclusion spaces across formatting contexts.
We already did reset the exclusion space when entering a new formatting context, but when leaving it, we'd return the final exclusion space for that inner formatting context to the parent algorithm. Although it was ignored by the parent algorithm, let's just make sure that we don't return it at all. Exclusion spaces are also ignored by legacy layout, which is fine, since we never let the two engines cooperate inside one and the same formatting context. Add DCHECKs that verify that we don't "leak" exclusion spaces across formatting context boundaries. No behavioral changes intended. Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: If025a5d4b5b6c96399f5719aed6cd3ab4d76c556 Reviewed-on: https://chromium-review.googlesource.com/1158409Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#580157}
Showing
Please register or sign in to comment