servo/components/layout_2020
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
..
display_list Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
flexbox Cleanup after #33396 (#33429) 2024-09-12 19:23:17 +00:00
flow Clear self.pending_whitespace.max_content in forced_line_break() (#33469) 2024-09-16 10:57:56 +00:00
fragment_tree Let table-related boxes adjust their overflow values (#33400) 2024-09-11 15:30:17 +00:00
table Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
tests layout: Right-to-left support for other layout modes (#33375) 2024-09-11 13:40:11 +00:00
Cargo.toml layout: Stop using unicode-segmentation in layout (#33250) 2024-08-29 14:51:39 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
context.rs Rename gfx to fonts (#32556) 2024-06-19 20:26:19 +00:00
dom.rs clippy: Fix warnings in shared and config, fonts, layout, and layout_2020 components (#32674) 2024-07-04 14:18:58 +00:00
dom_traversal.rs Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
formatting_contexts.rs layout: Use Au in ComputedValuesExt (#33396) 2024-09-10 21:35:17 +00:00
geom.rs Let LengthPercentage::maybe_to_used_value() accept Option<Au> (#33450) 2024-09-16 08:08:54 +00:00
layout_debug.rs clippy: Fix warnings in shared and config, fonts, layout, and layout_2020 components (#32674) 2024-07-04 14:18:58 +00:00
lib.rs layout: Right-to-left support for other layout modes (#33375) 2024-09-11 13:40:11 +00:00
lists.rs layout: Add a basic support for list-style-position: outside (#32114) 2024-04-22 14:23:35 +00:00
positioned.rs uses app units in display_list (#33420) 2024-09-13 10:49:59 +00:00
query.rs Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
replaced.rs layout: Right-to-left support for other layout modes (#33375) 2024-09-11 13:40:11 +00:00
sizing.rs Fix various issues with replaced elements in flex layout (#33263) 2024-08-30 23:39:18 +00:00
style_ext.rs Small improvements for table border collapse (#33452) 2024-09-16 08:20:22 +00:00
traversal.rs script: Split style and layout data in DOM nodes (#31985) 2024-04-04 07:56:51 +00:00