Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flex] Fix line cross-size calculation with extreme baselines.
As pointed out in: WebKit/WebKit#31376 (comment) Blink/WebKit were doing something incorrect when a baseline was outside the border-box of a flex-item. This was because we were initializing max_major_descent and max_minor_descent to zero, instead of LayoutUnit::Min(), (similar to FlexLine::max_major_ascent_ FlexLine::max_minor_ascent_). This only occurs with a single item in a flex-line. Change-Id: I4f32eb912a07247d16231451ba63e7c7a75a8b23 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5901280 Commit-Queue: Ian Kilpatrick <[email protected]> Reviewed-by: David Grogan <[email protected]> Cr-Commit-Position: refs/heads/main@{#1363827}
- Loading branch information