mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Automatic update from web-platform-tests
Fix ordering issue within NGBlockLayoutAlgorithm::ComputeMinMaxSizes
The DCHECK in the bug was caused by an order-of-operations issue.
Within the following calculation:
max_inline_contribution =
child_sizes.max_size + line_left_inset + line_right_inset;
If:
child_sizes.max_size == LayoutUnit::Max()
line_left_inset == LayoutUnit(1)
line_right_inset == LayoutUnit(-1)
max_inline_contribution would be LayoutUnit::Max() - LayoutUnit(1);
This resulted in max_size < min_size.
Bug: 1004060
Change-Id: I3e439500f07a2cd1cf0cbe5528ece16090c9fa70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2136885
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#757094}
--
wpt-commits: 4b2037f254fa8ea5f5e8e3cbd6e3838075f4212a
wpt-pr: 22705
11 lines
228 B
HTML
11 lines
228 B
HTML
<!quirks-mode>
|
|
<link rel="help" href="https://crbug.com/1004060">
|
|
<style>
|
|
html, body {
|
|
width: min-content;
|
|
overflow: scroll;
|
|
}
|
|
</style>
|
|
<body style="margin-right: -1px;">
|
|
<div style="margin: 0 10000000000;"></div>
|
|
</body>
|