mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
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> |
||
---|---|---|
.. | ||
construct.rs | ||
inline_box.rs | ||
line.rs | ||
line_breaker.rs | ||
mod.rs | ||
text_run.rs |