mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Stop sending " " to linebreaker for replaced content (#30740)
We previously sent a " " to the linebreaker in order to ensure that the next text had a soft wrap opportunity at the start. Calling `next(" ")` without waiting until the returned index was 1, violated some invariants of linebreaker ultimately causing a panic. Instead of using the linebreaker for this, simply keep a flag in the IFC layout state, which avoids the problem entirely. Fixes #30703.
This commit is contained in:
parent
53b0fa827d
commit
f1c291853e
8 changed files with 57 additions and 13 deletions
|
@ -1,2 +0,0 @@
|
|||
[line-breaking-atomic-002.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[line-breaking-atomic-009.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[line-breaking-replaced-001.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[line-breaking-replaced-006.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue