mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Previously, when the theme was set it was only set on currently active `Window`s. This change makes setting the `Theme` stateful. Now the `Constellation` tracks what theme is applied to a `WebView` and properly passes that value to new `Pipeline`s when they are constructed. In addition, the value is passed to layout when that is constructed as well. Testing: this change adds a unit test. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
41 lines
1.1 KiB
TOML
41 lines
1.1 KiB
TOML
[package]
|
|
name = "embedder_traits"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
name = "embedder_traits"
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
# bakes default resources into the library.
|
|
# This feature is mainly intended for testing purposes.
|
|
baked-default-resources = []
|
|
|
|
[dependencies]
|
|
base = { workspace = true }
|
|
cookie = { workspace = true }
|
|
crossbeam-channel = { workspace = true }
|
|
euclid = { workspace = true }
|
|
http = { workspace = true }
|
|
hyper_serde = { workspace = true }
|
|
ipc-channel = { workspace = true }
|
|
keyboard-types = { workspace = true }
|
|
log = { workspace = true }
|
|
malloc_size_of = { workspace = true }
|
|
malloc_size_of_derive = { workspace = true }
|
|
num-derive = "0.4"
|
|
num-traits = { workspace = true }
|
|
pixels = { path = "../../pixels" }
|
|
serde = { workspace = true }
|
|
servo_url = { path = "../../url" }
|
|
strum_macros = { workspace = true }
|
|
stylo_traits = { workspace = true }
|
|
stylo = { workspace = true }
|
|
url = { workspace = true }
|
|
webdriver = { workspace = true }
|
|
webrender_api = { workspace = true }
|