servo/components/script
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
..
docs Update branch name to main (#30877) 2023-12-16 09:32:20 +00:00
dom servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
layout_dom clippy: Add safety documentation and clean up unsafe methods (#33748) 2024-10-16 08:11:31 +00:00
task_source CanGc fixes in several files (#33958) 2024-10-21 21:32:22 +00:00
animation_timeline.rs script: Start replacing time with std::time and chrono (#30639) 2024-01-16 12:23:18 +00:00
animations.rs cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002) 2024-10-25 12:44:15 +00:00
body.rs Replace CanGC note calls with arguments passed by callers (#33978) 2024-10-23 22:19:20 +00:00
build.rs use rerun-if-changed in script/build.rs (#33502) 2024-09-30 11:31:05 +00:00
canvas_state.rs CanGc changes from fontfaceset.rs (#33920) 2024-10-21 12:28:56 +00:00
Cargo.toml Implement SubtleCrypto.digest (#34034) 2024-10-30 02:06:02 +00:00
clipboard_provider.rs
devtools.rs cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002) 2024-10-25 12:44:15 +00:00
document_loader.rs net: Start reducing number of IPCs channels used for fetch with a FetchThread (#33863) 2024-10-16 16:53:24 +00:00
fetch.rs CanGc fixes from EventTarget::fire_event (#33985) 2024-10-23 22:48:19 +00:00
image_listener.rs Use ROUTER::add_typed_route instead of ROUTER::add_route everywhere (#33866) 2024-10-18 10:47:52 +00:00
init.rs Fixed some clippy warning by adding default implementations (#31989) 2024-04-04 09:33:30 +00:00
layout_image.rs CanGc fixes from EventTarget::fire_event (#33985) 2024-10-23 22:48:19 +00:00
lib.rs Support persisting unminified external stylesheets (#33919) 2024-10-30 11:12:20 +00:00
links.rs CanGc fixes from constantsourcenode.rs & window.rs (#33931) 2024-10-20 19:54:02 +00:00
mem.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
microtask.rs Make CanGc derive Copy and Clone (#33407) 2024-09-12 10:24:44 +00:00
network_listener.rs CanGc fixes from EventTarget::fire_event (#33985) 2024-10-23 22:48:19 +00:00
realms.rs clippy: components/script/realms (#32859) 2024-07-26 10:15:02 +00:00
script_module.rs CanGc fixes from EventTarget::fire_event (#33985) 2024-10-23 22:48:19 +00:00
script_runtime.rs cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002) 2024-10-25 12:44:15 +00:00
script_thread.rs Support persisting unminified external stylesheets (#33919) 2024-10-30 11:12:20 +00:00
security_manager.rs cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002) 2024-10-25 12:44:15 +00:00
serviceworker_manager.rs Prevent moving CanGc values between threads/tasks (#33902) 2024-10-18 17:26:54 +00:00
stylesheet_loader.rs Support persisting unminified external stylesheets (#33919) 2024-10-30 11:12:20 +00:00
stylesheet_set.rs
task.rs ensure clean shutdown of all threads running JS 2020-06-30 13:22:38 +08:00
task_manager.rs script: Start rework to better match the specification HTML event loop (#31505) 2024-05-13 09:23:03 +00:00
task_queue.rs clippy: Fix suggestions in script, libservo, and servoshell (#33453) 2024-09-14 08:41:13 +00:00
test.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
textinput.rs remove usage of legacy numeric operations in script (#33095) 2024-08-16 21:30:13 +00:00
timers.rs cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002) 2024-10-25 12:44:15 +00:00
unminify.rs Support persisting unminified external stylesheets (#33919) 2024-10-30 11:12:20 +00:00
unpremultiplytable.rs
webdriver_handlers.rs cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002) 2024-10-25 12:44:15 +00:00
window_named_properties.rs Replace the lazy_static crate whth std::sync::LazyLock in components/script (#33004) 2024-08-12 07:30:35 +00:00