aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-11-30 15:46:14 +0100
committerGitHub <noreply@github.com>2023-11-30 14:46:14 +0000
commitf1c291853e331329271efba52a03ba5049e8358b (patch)
treeac26e38c49947c01cff43cf85878ed5bb3719121 /components/layout_thread
parent53b0fa827d37f3f7127470371d12d2a1c917e396 (diff)
downloadservo-f1c291853e331329271efba52a03ba5049e8358b.tar.gz
servo-f1c291853e331329271efba52a03ba5049e8358b.zip
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.
Diffstat (limited to 'components/layout_thread')
0 files changed, 0 insertions, 0 deletions