servo/components
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
..
allocator deps: switch to tikv-jemallocator crates in Cargo.toml (#32828) 2024-07-22 07:55:46 +00:00
background_hang_monitor background_hang_monitor: Add musl compatibility (#33153) 2024-08-21 21:38:28 +00:00
bluetooth Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
canvas Use raqote from crates.io and update canvas Cargo.toml (#33411) 2024-09-11 20:57:46 +00:00
compositing Stop using time@0.1 in Servo (#33394) 2024-09-11 07:09:56 +00:00
config layout: Enable flexbox by default on non-legacy layout (#33186) 2024-08-26 13:50:52 +00:00
config_plugins Replace lazy_static crate with std::sync::LazyLock in layout and config (#33065) 2024-08-15 16:28:04 +00:00
constellation Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
deny_public_fields Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
devtools Stop using time@0.1 in Servo (#33394) 2024-09-11 07:09:56 +00:00
dom_struct Use global exports from derives (#33169) 2024-08-25 13:58:09 +00:00
domobject_derive Impl PartialEq and Eq for DomObject (#33212) 2024-09-02 09:50:46 +00:00
fonts Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
geometry Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
hyper_serde Stop using time@0.1 in Servo (#33394) 2024-09-11 07:09:56 +00:00
jstraceable_derive Use global exports from derives (#33169) 2024-08-25 13:58:09 +00:00
layout Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
layout_2020 Clear self.pending_whitespace.max_content in forced_line_break() (#33469) 2024-09-16 10:57:56 +00:00
layout_thread script: Create a CrossProcessInstant to enable serializable monotonic time (#33282) 2024-09-05 18:50:09 +00:00
layout_thread_2020 Trace more functions by adding perfetto tracing events (#33417) 2024-09-13 05:51:19 +00:00
media Remove lazy static (#33078) 2024-08-16 03:57:09 +00:00
metrics script: Create a CrossProcessInstant to enable serializable monotonic time (#33282) 2024-09-05 18:50:09 +00:00
net Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
pixels Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
profile script: Create a CrossProcessInstant to enable serializable monotonic time (#33282) 2024-09-05 18:50:09 +00:00
rand Remove lazy static (#33078) 2024-08-16 03:57:09 +00:00
range Refactor GlyphStore::iter_glyphs_for_byte_range without recursion (#33074) 2024-08-19 10:47:09 +00:00
script chore: update script to use phf 0.11 (#33434) 2024-09-16 10:32:49 +00:00
servo Add perfetto tracing events to fonts (#33436) 2024-09-16 09:04:58 +00:00
shared Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
url script: Impl cloning of JSPrincipals (#32706) 2024-07-06 10:25:38 +00:00
webdriver_server dependencies: Upgrade cookie and rename Servo's Cookie to ServoCookie (#32861) 2024-07-26 16:13:39 +00:00
webgpu webgpu: Do one allocation less on presentation by keeping GPUBuffer mapped (#33387) 2024-09-13 13:32:00 +00:00