[wpt-sync] Sync PR 32964 - Intrinsic block-size should be >= border+scrollbar+padding.
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox100 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 32964 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/32964
Details from upstream follow.
Morten Stenshorne <mstensho@chromium.org> wrote:
Intrinsic block-size should be >= border+scrollbar+padding.
In some special-code for text areas, subtract before adding, to avoid
issues with saturated arithmetic in LayoutUnit. If
current_intrinsic_block_size is LayoutUnit::Max(), and
default_intrinsic_size + border_scrollbar_padding.BlockSum() is
LayoutUnit::Max(), and ComputeScrollbars(space, node).BlockSum() is
greater than zero, we'd end up with returning an intrinsic block-size
less than border_scrollbar_padding.BlockSum(), which is wrong and would
hit a DCHECK further down in the sizing machinery.This might fix crbug.com/1289408 (but I didn't test - need to follow
some special steps in order to do that).Bug: 1289408
Change-Id: I6d3d8c96828998553adb6e451e905a1aeb8f7b04Reviewed-on: https://chromium-review.googlesource.com/3486499
WPT-Export-Revision: 7811ce6c4d313efe8beff6b053139b5c31893289
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
| Assignee | ||
Comment 4•4 years ago
|
||
Comment 5•4 years ago
|
||
| bugherder | ||
Description
•