mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01: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
|
@ -96,7 +96,6 @@ impl WorkletGlobalScope {
|
|||
MutableOrigin::new(ImmutableOrigin::new_opaque()),
|
||||
None,
|
||||
Default::default(),
|
||||
init.is_headless,
|
||||
init.user_agent.clone(),
|
||||
#[cfg(feature = "webgpu")]
|
||||
init.gpu_id_hub.clone(),
|
||||
|
@ -186,8 +185,6 @@ pub(crate) struct WorkletGlobalScopeInit {
|
|||
pub(crate) to_constellation_sender: IpcSender<(PipelineId, ScriptMsg)>,
|
||||
/// The image cache
|
||||
pub(crate) image_cache: Arc<dyn ImageCache>,
|
||||
/// True if in headless mode
|
||||
pub(crate) is_headless: bool,
|
||||
/// An optional string allowing the user agent to be set for testing
|
||||
pub(crate) user_agent: Cow<'static, str>,
|
||||
/// Identity manager for WebGPU resources
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue