servo/components/layout_2020/flow/inline
Oriol Brufau 5b6a9110c7
Clear self.pending_whitespace.max_content in forced_line_break() (#33469)
If we encountered a preserved line break after some whitespace, we were
including the space in the max-content size of the following line.

So just like `line_break_opportunity()` was already clearing
`self.pending_whitespace.min_content`, `forced_line_break()` needs to
clear `self.pending_whitespace.max_content` too.

Also some cosmetic refactoring.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2024-09-16 10:57:56 +00:00
..
construct.rs layout: Stop using unicode-segmentation in layout (#33250) 2024-08-29 14:51:39 +00:00
inline_box.rs tidy: Fix rustdoc warnings and add a tidy check for a common URL issue (#33366) 2024-09-08 15:04:19 +00:00
line.rs uses app units in display_list (#33420) 2024-09-13 10:49:59 +00:00
line_breaker.rs layout: Linebreak the entire InlineFormattingContext at once (#32483) 2024-06-13 20:12:14 +00:00
mod.rs Clear self.pending_whitespace.max_content in forced_line_break() (#33469) 2024-09-16 10:57:56 +00:00
text_run.rs Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00