Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flex] Mitigate performance drop during dynamic flex change.
I haven't got a good reproducible test yet, but the issue experienced in 1479477 is related to a dynamic size change. There are two layouts which can occur during flexbox column wrap intrinsic sizing. 1) During base size calculation. For this we simply return the border/padding if the child is layout clean. 2) During cross-axis flex-line calculation (primarily for determining the baseline, and the cross-axis size). Use the max-content contribution for the cross-axis size, and ignore baseline alignment. (cherry picked from commit b458db7) Bug: 1272533, 1479477 Change-Id: Ic926616e88b7fb90eb5937897b00db62badae045 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4854071 Reviewed-by: Alison Maher <almaher@microsoft.com> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1194378} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4857171 Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Ian Kilpatrick <ikilpatrick@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5993@{#186} Cr-Branched-From: 5113507-refs/heads/main@{#1192594}
- Loading branch information