Use new stylo crate renames (#35898)

Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
Nico Burns 2025-03-12 13:02:12 +13:00 committed by GitHub
parent e4757534fe
commit f527217bdc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
105 changed files with 178 additions and 179 deletions

View file

@ -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 }

View file

@ -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,
);