fonts: Add more types to fonts_traits (#38898)

This is necessary so that `constellation_traits` can get these types via
a
dependency on `fonts_traits`. This will allow sending IPC channels to
shared
workers so that they can have access to a shared `FontContext` from
`script`.

Testing: This just moves code between crates, so is covered by existing
tests.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-08-24 12:36:59 -07:00 committed by GitHub
parent 0b5bcfbf17
commit 3a97d4eed2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 495 additions and 446 deletions

9
Cargo.lock generated
View file

@ -2669,7 +2669,6 @@ name = "fonts"
version = "0.0.1"
dependencies = [
"app_units",
"atomic_refcell",
"base",
"bitflags 2.9.3",
"byteorder",
@ -2721,11 +2720,19 @@ dependencies = [
name = "fonts_traits"
version = "0.0.1"
dependencies = [
"atomic_refcell",
"dwrote",
"ipc-channel",
"log",
"malloc_size_of_derive",
"memmap2",
"range",
"read-fonts",
"serde",
"servo_malloc_size_of",
"servo_url",
"stylo",
"webrender_api",
]
[[package]]