aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-02-10 21:48:48 +0100
committerGitHub <noreply@github.com>2025-02-10 20:48:48 +0000
commit118a813dba18d89acb9481c5d9b131738d3ed1ab (patch)
treefab979ec20a0e5fef0a342e8e8fee50f66857012 /components
parentbea7a969f4c960dd14eae9c2c7496b03c4371495 (diff)
downloadservo-118a813dba18d89acb9481c5d9b131738d3ed1ab.tar.gz
servo-118a813dba18d89acb9481c5d9b131738d3ed1ab.zip
servoshell: Move `initial_window_size` and `screen_size_override` into `ServoShellPreferences` from `Opts` (#35407)
These settings just configure `servoshell` so should be in `ServoShellPreferences` instead. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components')
-rw-r--r--components/config/opts.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/components/config/opts.rs b/components/config/opts.rs
index 30634c76b9d..fe5eff15e9d 100644
--- a/components/config/opts.rs
+++ b/components/config/opts.rs
@@ -9,9 +9,7 @@ use std::default::Default;
use std::path::PathBuf;
use std::sync::{LazyLock, RwLock, RwLockReadGuard};
-use euclid::Size2D;
use serde::{Deserialize, Serialize};
-use servo_geometry::DeviceIndependentPixel;
use servo_url::ServoUrl;
/// Global flags for Servo, currently set on the command line.
@@ -59,13 +57,6 @@ pub struct Opts {
/// remote WebDriver commands.
pub webdriver_port: Option<u16>,
- /// The initial requested size of the window.
- pub initial_window_size: Size2D<u32, DeviceIndependentPixel>,
-
- /// An override for the screen resolution. This is useful for testing behavior on different screen sizes,
- /// such as the screen of a mobile device.
- pub screen_size_override: Option<Size2D<u32, DeviceIndependentPixel>>,
-
/// Whether we're running in multiprocess mode.
pub multiprocess: bool,
@@ -213,8 +204,6 @@ impl Default for Opts {
output_file: None,
hard_fail: true,
webdriver_port: None,
- initial_window_size: Size2D::new(1024, 740),
- screen_size_override: None,
multiprocess: false,
background_hang_monitor: false,
random_pipeline_closure_probability: None,