servo/components/layout_2020/flow
Martin Robinson f1c291853e
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.
2023-11-30 14:46:14 +00:00
..
construct.rs Make LineItems a token stream on the root (#30608) 2023-10-25 15:54:44 +00:00
float.rs Allow raising FloatContext ceiling after processing box with overflow (#30539) 2023-10-17 07:53:57 +00:00
inline.rs Stop sending " " to linebreaker for replaced content (#30740) 2023-11-30 14:46:14 +00:00
mod.rs Allow raising FloatContext ceiling after processing box with overflow (#30539) 2023-10-17 07:53:57 +00:00
root.rs Layout 2020: Rename flow_relative types to Logical... (#30324) 2023-09-12 07:31:30 +00:00