[wpt-sync] Sync PR 19045 - [LayoutNG] Fix may_break_inside in NGLineBreaker
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 19045 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/19045
Details from upstream follow.
Koji Ishii <kojii@chromium.org> wrote:
[LayoutNG] Fix may_break_inside in NGLineBreaker
This patch fixes |may_break_inside| in |NGLineBreaker|.
Issue 1002442 revealed an error case in |ShapingLineBreaker|.
In that case, it returns a result whose size is larger than
the available space.Before this patch, |NGLineBreaker| assumes that the line
overflows if the result size is larger than the available
size, and sets |may_break_inside| to |false|, which
prevents breaking in |HandleOverflow()|. This can cause
rather a large layout error.crrev.com/c/1797954 tried to fix the error in
|ShapingLineBreaker|, but it looks like some tests is relying
on the behavior and it was reverted.This patch instead makes |NGLineBreaker| more robust, by
using the actual overflow state from |ShapingLineBreaker| to
compute |may_break_inside|. The error in |ShapingLineBreaker|
is not fixed yet, but with this fix, the worst result is to
not able to fit a word that can fit by less than 1px or so.Further work for better correctness will be tracked in
issue 1003742.Bug: 1002442, 1003742
Change-Id: I13a3172abc8a0d2f5f78b2dd0b57b85de593fdffReviewed-on: https://chromium-review.googlesource.com/1803019
WPT-Export-Revision: 92c38b2ddb9b40d9e89bfc19eb6056c819e8dac7
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=ba61921cbb3c0efe396767dd0f6758246193512a
Assignee | ||
Comment 2•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=7b374080d977f0310e9491c2addbbffdcab17d3e
Assignee | ||
Comment 3•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=d22cadf35496cadbe5a628ff2b1b95febd049af8
Assignee | ||
Comment 4•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=a9dadf4c422a6929472e950831a11b43ef26de4b
Assignee | ||
Comment 5•5 years ago
|
||
Ran 1 tests and 1 subtests OK : 1 PASS : 1
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/d6a67db1a438 [wpt PR 19045] - [LayoutNG] Fix may_break_inside in NGLineBreaker, a=testonly
Comment 7•5 years ago
|
||
bugherder landing |
Comment 8•5 years ago
|
||
bugherder |
Description
•