servo/components
Martin Robinson fe8b23d14a
layout: Add a FontMetricsProvider for resolving font-relative units (#31966)
The only font relative unit that Servo knows how to resolve currently is
`rem` (relative to the root font size). This is because Stylo cannot do
any font queries. This adds a mechanism to allow this, exposing the
ability to properly render `ex` units in Servo.

This change only allows resolving some font size relative units thoug,
as Servo doesn't collect all the FontMetrics it needs to resolve them
all. This capability will be added in followup changes.

Some new tests fail:
 - ex-unit-001.html: This test fails because Servo does not yet have
   support for setting the weight using @font-face rules on web fonts.
 - ex-unit-004.html: This test fails because Servo does not yet have
   support for setting the Unicode range of a web font using @font-face
   rules.
 - first-available-font-001.html: This test fails because the above
   two feature are missing.
2024-04-04 12:35:15 +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 Update Stylo to 2023-10-16 (#31932) 2024-03-30 13:30:13 +00:00
compositing clippy: fix warnings in components/compositing (#31987) 2024-04-03 17:19:15 +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 Initial internal support for multiple webviews (#31417) 2024-04-03 11:06:28 +00:00
deny_public_fields Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
devtools clippy: Allow too_many_arguments for existing functions (#31974) 2024-04-02 12:50:45 +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 layout: Add a FontMetricsProvider for resolving font-relative units (#31966) 2024-04-04 12:35:15 +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 script: Split style and layout data in DOM nodes (#31985) 2024-04-04 07:56:51 +00:00
layout_2020 layout: Add a FontMetricsProvider for resolving font-relative units (#31966) 2024-04-04 12:35:15 +00:00
layout_thread layout: Add a FontMetricsProvider for resolving font-relative units (#31966) 2024-04-04 12:35:15 +00:00
layout_thread_2020 layout: Add a FontMetricsProvider for resolving font-relative units (#31966) 2024-04-04 12:35:15 +00:00
media clippy: fix result_unit_err warnings (#31791) 2024-03-21 12:51:45 +00:00
metrics clippy: Fix assorted warnings in components/ (#31628) 2024-03-13 08:31:58 +00:00
net clippy: Allow too_many_arguments for existing functions (#31974) 2024-04-02 12:50:45 +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
script layout: Add a FontMetricsProvider for resolving font-relative units (#31966) 2024-04-04 12:35:15 +00:00
servo Initial internal support for multiple webviews (#31417) 2024-04-03 11:06:28 +00:00
shared layout: Add a FontMetricsProvider for resolving font-relative units (#31966) 2024-04-04 12:35:15 +00:00
url clippy: Map to an error type instead of using allowing result_unit_err in components/url (#31834) 2024-03-26 12:23:07 +00:00
webdriver_server clippy: Allow too_many_arguments for existing functions (#31974) 2024-04-02 12:50:45 +00:00
webgpu webgpu: Implement onSubmittedWorkDone (#31772) 2024-04-04 08:12:40 +00:00