mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Instead of sending a message to the script thread via IPC when a web font loads and then sending another, just give the `FontContext` a callback that send a single message to the script thread. This moves all the cache invalidation internally into `FontContext` as well. Additionally, the unused LayoutControlMessage::ExitNow enum variant is removed. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
76 lines
2.3 KiB
TOML
76 lines
2.3 KiB
TOML
[package]
|
|
|
|
name = "gfx"
|
|
version = "0.0.1"
|
|
authors = ["The Servo Project Developers"]
|
|
license = "MPL-2.0"
|
|
edition = "2018"
|
|
publish = false
|
|
|
|
[lib]
|
|
name = "gfx"
|
|
path = "lib.rs"
|
|
test = false
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
app_units = { workspace = true }
|
|
atomic_refcell = { workspace = true }
|
|
bitflags = { workspace = true }
|
|
cssparser = { workspace = true }
|
|
crossbeam-channel = { workspace = true }
|
|
euclid = { workspace = true }
|
|
fnv = { workspace = true }
|
|
fontsan = { git = "https://github.com/servo/fontsan" }
|
|
gfx_traits = { workspace = true }
|
|
harfbuzz-sys = "0.6.1"
|
|
ipc-channel = { workspace = true }
|
|
lazy_static = { workspace = true }
|
|
libc = { workspace = true }
|
|
log = { workspace = true }
|
|
malloc_size_of = { workspace = true }
|
|
malloc_size_of_derive = { workspace = true }
|
|
net_traits = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
range = { path = "../range" }
|
|
serde = { workspace = true }
|
|
servo_arc = { workspace = true }
|
|
servo_atoms = { workspace = true }
|
|
servo_url = { path = "../url" }
|
|
smallvec = { workspace = true, features = ["union"] }
|
|
surfman = { workspace = true }
|
|
style = { workspace = true }
|
|
ucd = "0.1.1"
|
|
unicode-bidi = { workspace = true, features = ["with_serde"] }
|
|
unicode-properties = { workspace = true }
|
|
unicode-script = { workspace = true }
|
|
url = { workspace = true }
|
|
webrender_api = { workspace = true }
|
|
webrender_traits = { workspace = true }
|
|
xi-unicode = { workspace = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
byteorder = { workspace = true }
|
|
core-foundation = "0.9"
|
|
core-graphics = "0.23"
|
|
core-text = "20.1"
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
|
|
harfbuzz-sys = { version = "0.6", features = ["bundled"] }
|
|
freetype-sys = { workspace = true }
|
|
servo_allocator = { path = "../allocator" }
|
|
|
|
[target.'cfg(all(target_os = "linux", not(target_env = "ohos")))'.dependencies]
|
|
fontconfig_sys = { package = "yeslogic-fontconfig-sys", version = "5" }
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
xml-rs = "0.8"
|
|
|
|
[target.'cfg(target_env = "ohos")'.dependencies]
|
|
harfbuzz-sys = { version = "0.6.1", features = ["bundled"] }
|
|
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
harfbuzz-sys = { version = "0.6", features = ["bundled"] }
|
|
dwrote = "0.11"
|
|
truetype = { version = "0.47.3", features = ["ignore-invalid-language-ids"] }
|