[LayoutNG] Allow reusing NGLayoutResults which clearance applies.
This allows us to reuse layout results when affected by clearance. We can't do this when: 1. The "old" clearance offset isn't equal to the layout results offset. 2. The difference between the constraint's BFC-block-offset, and the clearance offset shrinks (e.g. a margin may affect the final position). I'm not sure if (1) actually should be a DCHECK. Bug: 635619 Change-Id: Ic92063882914d4da7a4b168783ec2f2af82ec1fd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574836 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#653583}
Showing
Please register or sign in to comment