servo/ports/servoshell/egl
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
..
android ohos: Bundle resource files in hap (#33513) 2024-09-24 04:29:53 +00:00
ohos ohos: Allow passing arguments to servoshell (#33588) 2024-10-02 04:27:18 +00:00
android.rs ohos: Bundle resource files in hap (#33513) 2024-09-24 04:29:53 +00:00
gl_glue.rs Add OpenHarmony support to servoshell (#32594) 2024-06-28 12:51:50 +00:00
host_trait.rs ohos: Present on vsync signals (#33117) 2024-08-30 13:25:50 +00:00
log.rs ohos/android: Redirect stdout/stderr to log sink (#32858) 2024-08-15 09:26:03 +00:00
mod.rs ohos: Bundle resource files in hap (#33513) 2024-09-24 04:29:53 +00:00
ohos.rs ohos: Add toast prompt (#33621) 2024-10-03 16:33:21 +00:00
servo_glue.rs servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00