servo/components/compositing
Martin Robinson c6dc7c83a8
libservo: Make zooming and HiDPI scaling work per-WebView (#36419)
libservo: Make zooming and HiDPI scaling work per-`WebView`

This change moves all zooming and HiDPI scaling to work per-`WebView` in
both libservo and Compositor. This means that you can pinch zoom one
`WebView` and it should now work independently of other `WebView`s.
This is accomplished by making each `WebView` in the WebRender scene
have its own scaling reference frame.

All WebViews are now expected to manage their HiDPI scaling factor and
this can be set independently of other WebViews. Perhaps in the future
this will become a Servo-wide setting.

This allows full removal of the `WindowMethods` trait from Servo.

Testing: There are not yet any tests for the WebView API, but I hope
to add those soon.

Co-authored-by: Shubham Gupta <shubham13297@gmail.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Shubham Gupta <shubham13297@gmail.com>
2025-04-14 12:01:49 +00:00
..
Cargo.toml libservo: Remove the unused multiview feature (#36485) 2025-04-14 07:46:07 +00:00
compositor.rs libservo: Make zooming and HiDPI scaling work per-WebView (#36419) 2025-04-14 12:01:49 +00:00
lib.rs compositor: Unify the cross process and in-process API (#36443) 2025-04-12 21:38:22 +00:00
touch.rs Fixed the crash issue when the openharmony web component is adapted. (#36229) 2025-03-31 09:46:49 +00:00
tracing.rs Fix typo in tracing code. (#36501) 2025-04-13 16:42:14 +00:00
webview.rs libservo: Make zooming and HiDPI scaling work per-WebView (#36419) 2025-04-14 12:01:49 +00:00
webview_manager.rs Separate WebviewManager from Webview in compositor and constellation (#36302) 2025-04-04 07:34:19 +00:00
windowing.rs libservo: Make zooming and HiDPI scaling work per-WebView (#36419) 2025-04-14 12:01:49 +00:00