From 0e616e0c5d2bef8a6de1df25f2419a435837ed63 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Tue, 14 Jan 2025 14:54:06 +0100 Subject: api: Flatten and simplify Servo preferences (#34966) Flatten and simplify Servo's preferences code. In addition, have both preferences and options passed in as arguments to `Servo::new()` and make sure not to use the globally set preferences in `servoshell` (as much as possible now). Instead of a complex procedural macro to generate preferences, just expose a very simple derive macro that adds string based getters and setters. - All command-line parsing is moved to servoshell. - There is no longer the concept of a missing preference. - Preferences no longer have to be part of the resources bundle because they now have reasonable default values. - servoshell specific preferences are no longer part of the preferences exposed by the Servo API. Signed-off-by: Martin Robinson --- components/script/script_thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index a4704cb2b42..0cf14937c4c 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2794,7 +2794,7 @@ impl ScriptThread { self.background_hang_monitor.unregister(); // If we're in multiprocess mode, shut-down the IPC router for this process. - if opts::multiprocess() { + if opts::get().multiprocess { debug!("Exiting IPC router thread in script thread."); ROUTER.shutdown(); } -- cgit v1.2.3