servo/components/config
Martin Robinson 850e59f98e
servoshell: Allow overriding screen resolution with a command-line argument (#34038)
There is a command-line argument to override the default window size,
but not one for overriding the default screen resolution. This is
important for testing pages that use screen size to have different
behavior.

In addition to adding the new option this change:

 - Renames the `--resolution` command-line argument to `--window-size`
   to remove ambiguity with the `--screen-size` argument.
 - Passes the screen size as device independent (device pixels scaled by
   HiDPI factor) to Servo internals. Not only it make it simpler to pass
   the `--window-size` override, it makes more sense. Different screens
   can have different HiDPI factors and these can be different from the
   scale of the window. This makes the screen HiDPI factor totally
   independent of the one that Servo uses for the window.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-10-30 11:54:13 +00:00
..
tests Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
basedir.rs Upgrade font-kit, raqote, and stop using dirs-next (#33120) 2024-08-19 12:16:28 +00:00
Cargo.toml Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
lib.rs remove extern crate (#30311) 2023-09-08 12:11:31 +00:00
opts.rs servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
pref_util.rs Replace lazy_static crate with std::sync::LazyLock in layout and config (#33065) 2024-08-15 16:28:04 +00:00
prefs.rs dom: Stub out the IntersectionObserver interface (#33989) 2024-10-25 09:26:47 +00:00