servo/ports/servoshell/desktop
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
..
protocols Create HttpStatus to safely deal with HTTP responses status. (#33581) 2024-09-29 18:23:48 +00:00
app.rs ServoShell: Don't request redrawing again when processing a RedrawRequested event (#34008) 2024-10-25 14:48:47 +00:00
cli.rs Make tracing available on all platforms, with or without perfetto (#33301) 2024-09-04 12:56:29 +00:00
egui_glue.rs Upgrade to egui@0.29.1 and winit@0.30.5 (#33751) 2024-10-10 17:18:03 +00:00
embedder.rs Fix typo on protocol handlers (#33565) 2024-09-27 07:16:27 +00:00
events_loop.rs Avoid invalid lifetime extension for winit event loop. (#33962) 2024-10-22 09:32:03 +00:00
geometry.rs Split servoshell into Desktop and common part (#32457) 2024-06-14 06:26:35 +00:00
headed_window.rs servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
headless_window.rs servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
keyutils.rs servoshell: Clean up keyboard event conversion a little (#32564) 2024-06-19 19:38:56 +00:00
minibrowser.rs Upgrade to egui@0.29.1 and winit@0.30.5 (#33751) 2024-10-10 17:18:03 +00:00
mod.rs make protocol handlers registrable (#33104) 2024-08-22 04:11:16 +00:00
tracing.rs Upgrade to egui@0.29.1 and winit@0.30.5 (#33751) 2024-10-10 17:18:03 +00:00
webview.rs Drop support for '--no-minibrowser' mode (#33677) 2024-10-07 08:00:32 +00:00
window_trait.rs Upgrade to egui@0.29.1 and winit@0.30.5 (#33751) 2024-10-10 17:18:03 +00:00