mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
servoshell: Move headless
setting to ServoShellPreferences (#35377)
This is only used in servoshell, even though it was plumbed through script previously. It's just about how the `RenderingContext` is set up, which is something managed entirely outside of servo itself. In addition, make the name of `servo_shell_preferences` in `app.rs` more consistent with the rest of the codebase. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
1ba5d0e093
commit
e227e0913b
11 changed files with 20 additions and 48 deletions
|
@ -318,9 +318,6 @@ pub struct ScriptThread {
|
|||
/// won't be loaded
|
||||
userscripts_path: Option<String>,
|
||||
|
||||
/// True if headless mode.
|
||||
headless: bool,
|
||||
|
||||
/// Replace unpaired surrogates in DOM strings with U+FFFD.
|
||||
/// See <https://github.com/servo/servo/issues/6564>
|
||||
replace_surrogates: bool,
|
||||
|
@ -753,7 +750,6 @@ impl ScriptThread {
|
|||
.pipeline_to_constellation_sender
|
||||
.clone(),
|
||||
image_cache: script_thread.image_cache.clone(),
|
||||
is_headless: script_thread.headless,
|
||||
user_agent: script_thread.user_agent.clone(),
|
||||
#[cfg(feature = "webgpu")]
|
||||
gpu_id_hub: script_thread.gpu_id_hub.clone(),
|
||||
|
@ -961,7 +957,6 @@ impl ScriptThread {
|
|||
local_script_source: opts.local_script_source.clone(),
|
||||
unminify_css: opts.unminify_css,
|
||||
userscripts_path: opts.userscripts.clone(),
|
||||
headless: opts.headless,
|
||||
replace_surrogates: opts.debug.replace_surrogates,
|
||||
user_agent,
|
||||
player_context: state.player_context,
|
||||
|
@ -3151,7 +3146,6 @@ impl ScriptThread {
|
|||
self.unminify_css,
|
||||
self.local_script_source.clone(),
|
||||
self.userscripts_path.clone(),
|
||||
self.headless,
|
||||
self.replace_surrogates,
|
||||
self.user_agent.clone(),
|
||||
self.player_context.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue