servo/components
Martin Robinson 7de0486e2e
layout: Count word separators as justification opportunities when trimming whitespace (#31161)
Before counting whitepsace-only `GlyphStore`s where counted as a single
justification opportunity when trimming whitespace from the front and
back of lines. This isn't correct, instead count the actual number of
word seperators of the trimmed `GlyphStore`s.

These two counts can be different in the case where whitespace collapse
isn't happening yet (flexbox). In addition, using word seperators means
the code is making less assumptions about the contents of the line and
is more robust.

This fixes some crashes in flexbox tests on debug builds.

Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
2024-01-23 11:47:13 +00:00
..
allocator Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
atoms Further changes required by Servo 2023-11-06 09:35:57 +01:00
background_hang_monitor Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
bluetooth Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
canvas rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
compositing Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
config rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
config_plugins Remove use of proc_macro_diagnostics feature (#30745) 2023-11-17 10:36:09 +00:00
constellation rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
deny_public_fields Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
derive_common Further changes required by Servo 2023-11-24 08:57:14 +01:00
devtools rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
dom_struct Replace script_plugins with a clippy like rustc driver (named crown) (#30508) 2023-12-01 15:50:52 +00:00
domobject_derive Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
geometry Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
gfx layout: Count word separators as justification opportunities when trimming whitespace (#31161) 2024-01-23 11:47:13 +00:00
hyper_serde Revert "Replace time with std::time in components/net (#31079)" (#31120) 2024-01-18 15:10:48 +00:00
jstraceable_derive Update to syn 2 where possible (#30387) 2023-09-19 15:57:37 +00:00
layout rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
layout_2020 layout: Count word separators as justification opportunities when trimming whitespace (#31161) 2024-01-23 11:47:13 +00:00
layout_thread Compile Servo with the latest version of rust stable (#30831) 2023-12-06 17:36:07 +00:00
layout_thread_2020 Compile Servo with the latest version of rust stable (#30831) 2023-12-06 17:36:07 +00:00
malloc_size_of script: Start replacing time with std::time and chrono (#30639) 2024-01-16 12:23:18 +00:00
media Move *_traits and other shared types to shared 2023-11-03 15:38:18 +00:00
metrics Replace time with std::time in components/metrics & components/shared (#31020) 2024-01-10 19:23:47 +00:00
net rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
pixels Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
profile Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
rand Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
range Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
remutex rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
script rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
selectors Further changes required by Servo 2023-11-24 08:57:14 +01:00
servo Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
servo_arc style: Rustfmt servo/. r=zrhoffman 2023-11-24 08:57:14 +01:00
shared rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
size_of_test Further changes required by Servo 2023-08-16 17:46:41 +02:00
style layout: Implement support for line-height and vertical-align (#30902) 2024-01-08 14:49:50 +00:00
style_derive Further changes required by Servo 2023-11-24 08:57:14 +01:00
style_traits style: Remove viewport rule code 2023-11-24 08:57:14 +01:00
to_shmem style: Rustfmt servo/. r=zrhoffman 2023-11-24 08:57:14 +01:00
to_shmem_derive Further changes required by Servo 2023-11-24 08:57:14 +01:00
url Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
webdriver_server Move *_traits and other shared types to shared 2023-11-03 15:38:18 +00:00
webgpu Fix failed request for adapter when not available (#31002) 2024-01-09 09:12:53 +00:00
webrender_surfman Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00