Skip to content

Commit d99b4a5

Browse files
authored
Let static prefs default to style_config's prefs (#306)
This will allow Servo to enable them e.g. when turning on experimental features (`--enable-experimental-web-platform-features`), or when running specific tests. Servo PR: servo/servo#42410 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
1 parent 3b46f3e commit d99b4a5

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ stylo_traits = { path = "../stylo/style_traits" }
9393
Releases are made every time this repository rebases its changes on top of the latest version of upstream Stylo. There are a lot of crates here. In order to publish them, they must be done in order. One order that works is:
9494

9595
- selectors
96-
- stylo_static_prefs
9796
- stylo_config
97+
- stylo_static_prefs
9898
- stylo_atoms
9999
- stylo_malloc_size_of
100100
- stylo_dom

stylo_static_prefs/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ keywords = ["css", "style"]
99
license = "MPL-2.0"
1010
edition = "2021"
1111
readme = "../README.md"
12+
13+
[dependencies]
14+
style_config = { workspace = true }

stylo_static_prefs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ macro_rules! pref {
5252
true
5353
};
5454
($string:literal) => {
55-
false
55+
style_config::get_bool($string);
5656
};
5757
}

0 commit comments

Comments
 (0)