servo/components
Oriol Brufau 99c14c83ed
Obey white-space when intrinsically sizing an IFC (#31660)
The old logic was assuming that all whitespace was a break opportunity,
and that no newlines would be preserved.

Note that text shaping considers the advance of a newline to be the same
as a space. This was problematic because if we have a segment with a
preserved space and newline, only the advance of the space should
contrinute to the size of the block container. Therefore, I'm changing
the breaker logic in other to have newline characters in their own
segment.

Then glyph_run_is_whitespace_ending_with_preserved_newline can just be
renamed to glyph_run_is_preserved_newline.

This patch is still not perfect because it doesn't check allow_wrap(),
so `nowrap` is treated like `normal`, and `pre-wrap` like `pre`.
2024-03-15 12:45:23 +00:00
..
allocator rustdoc: Add some basic Safety sections to unsafe functions (#31639) 2024-03-13 10:44:59 +00:00
background_hang_monitor fix: missing thread name when spawning (#31656) 2024-03-14 10:40:58 +00:00
bluetooth clippy: fix warnings in components/bluetooth (#31566) 2024-03-07 23:32:35 +00:00
canvas fonts: Add FontIdentifier and LocalFontIdentifier (#31658) 2024-03-14 11:31:00 +00:00
compositing dependencies: Upgrade to WebRender 0.64 (#31486) 2024-03-14 17:40:54 +00:00
config compositor: Remove the is_running_problem_test setting (#31589) 2024-03-09 02:29:43 +00:00
config_plugins clippy: fix warnings in components/config* (#31562) 2024-03-08 07:15:56 +00:00
constellation constellation: allow event tracing to be configured with RUST_LOG (#31659) 2024-03-14 12:28:36 +00:00
deny_public_fields Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
devtools Fix clippy warnings in components/rand (#31549) 2024-03-07 23:16:42 +00:00
dom_struct clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
domobject_derive clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
geometry dependencies: Upgrade to WebRender 0.64 (#31486) 2024-03-14 17:40:54 +00:00
gfx Obey white-space when intrinsically sizing an IFC (#31660) 2024-03-15 12:45:23 +00:00
hyper_serde clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
jstraceable_derive Update to syn 2 where possible (#30387) 2023-09-19 15:57:37 +00:00
layout dependencies: Upgrade to WebRender 0.64 (#31486) 2024-03-14 17:40:54 +00:00
layout_2020 Obey white-space when intrinsically sizing an IFC (#31660) 2024-03-15 12:45:23 +00:00
layout_thread dependencies: Upgrade to WebRender 0.64 (#31486) 2024-03-14 17:40:54 +00:00
layout_thread_2020 dependencies: Upgrade to WebRender 0.64 (#31486) 2024-03-14 17:40:54 +00:00
media clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
metrics clippy: Fix assorted warnings in components/ (#31628) 2024-03-13 08:31:58 +00:00
net fix: missing thread name when spawning (#31656) 2024-03-14 10:40:58 +00:00
pixels clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
profile clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
rand Fix clippy warnings in components/rand (#31549) 2024-03-07 23:16:42 +00:00
range clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
remutex clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
script Implement HTMLStyleElement.disabled attribute (#31682) 2024-03-14 23:48:29 +00:00
servo dependencies: Upgrade to WebRender 0.64 (#31486) 2024-03-14 17:40:54 +00:00
shared dependencies: Upgrade to WebRender 0.64 (#31486) 2024-03-14 17:40:54 +00:00
url clippy: fix warnings in various modules in components (#31568) 2024-03-08 14:28:04 +00:00
webdriver_server clippy: Fix assorted warnings in components/ (#31628) 2024-03-13 08:31:58 +00:00
webgpu clippy: Fix assorted warnings in components/ (#31628) 2024-03-13 08:31:58 +00:00