mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use new stylo crate renames (#35898)
Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
parent
e4757534fe
commit
f527217bdc
105 changed files with 178 additions and 179 deletions
|
@ -16,4 +16,4 @@ serde = { workspace = true, features = ["derive"] }
|
|||
serde_json = { workspace = true }
|
||||
servo_config_macro = { path = "macro" }
|
||||
servo_url = { path = "../url" }
|
||||
style_config = { workspace = true }
|
||||
stylo_config = { workspace = true }
|
||||
|
|
|
@ -21,21 +21,21 @@ pub fn set(preferences: Preferences) {
|
|||
// Map between Stylo preference names and Servo preference names as the This should be
|
||||
// kept in sync with components/script/dom/bindings/codegen/run.py which generates the
|
||||
// DOM CSS style accessors.
|
||||
style_config::set_bool("layout.unimplemented", preferences.layout_unimplemented);
|
||||
style_config::set_i32("layout.threads", preferences.layout_threads as i32);
|
||||
style_config::set_bool("layout.legacy_layout", preferences.layout_legacy_layout);
|
||||
style_config::set_bool("layout.flexbox.enabled", preferences.layout_flexbox_enabled);
|
||||
style_config::set_bool("layout.columns.enabled", preferences.layout_columns_enabled);
|
||||
style_config::set_bool("layout.grid.enabled", preferences.layout_grid_enabled);
|
||||
style_config::set_bool(
|
||||
stylo_config::set_bool("layout.unimplemented", preferences.layout_unimplemented);
|
||||
stylo_config::set_i32("layout.threads", preferences.layout_threads as i32);
|
||||
stylo_config::set_bool("layout.legacy_layout", preferences.layout_legacy_layout);
|
||||
stylo_config::set_bool("layout.flexbox.enabled", preferences.layout_flexbox_enabled);
|
||||
stylo_config::set_bool("layout.columns.enabled", preferences.layout_columns_enabled);
|
||||
stylo_config::set_bool("layout.grid.enabled", preferences.layout_grid_enabled);
|
||||
stylo_config::set_bool(
|
||||
"layout.css.transition-behavior.enabled",
|
||||
preferences.layout_css_transition_behavior_enabled,
|
||||
);
|
||||
style_config::set_bool(
|
||||
stylo_config::set_bool(
|
||||
"layout.writing-mode.enabled",
|
||||
preferences.layout_writing_mode_enabled,
|
||||
);
|
||||
style_config::set_bool(
|
||||
stylo_config::set_bool(
|
||||
"layout.container-queries.enabled",
|
||||
preferences.layout_container_queries_enabled,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue