[LayoutNG] Get rid of extrinsic constraint space.
The extrinsic constraint space was used to calculate the intrinsic min/max sizes of orthogonal roots. However, now that our orthogonal flow fallback available inline size calculation is good enough, we no longer need the concept of "extrinsic constraint space". Instead create one with infinite sizes, but with correct fallback inline size. One change is required, though: We need to honor fixed block-size (and not just block-max-size and block-min-size) when calculating the fallback size. During layout, that size is already taken care of and put in the constraint space, but during intrinsic sizing, that isn't the case. Create the infinite constraint space in ComputeMinAndMaxContentContribution(), rather than at all call sites. Make the NGConstraintSpace parameter non-optional, and make it clear that it's the parent constraint space we take as input; previously it was sometimes the child's and sometimes the parent's. Change-Id: I7c884e383266c67bfa9438e98ad1312b39ea9372 Reviewed-on: https://chromium-review.googlesource.com/c/1341513 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by:Christian Biesinger <cbiesinger@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#610117}
Showing
Please register or sign in to comment