servo/components/constellation
Euclid Ye c5aeac3cea
script: Get the window rectangle from the WebViewDelegate instead of via the compositor (#37960)
Previously, `screenX`, `screenY`, `outerHeight`, `outerWidth`, `moveBy`,
`resizeBy` ask compositor for window rectangle, which then return
"inner" rectangle after consulting Embedder.

This PR 
1. removes `GetClientWindowRect` from compositor, and directly let
script ask embedder.
2. add `window_size` to `ScreenGeometry`
3. add a lot of docs to `ScreenGeometry`

Testing: `tests\wpt\mozilla\tests\mozilla\window_resizeTo.html` can now
pass for Headed Window.
Fixes: #37824

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2025-07-11 18:31:24 +00:00
..
browsingcontext.rs constellation: Stop assuming that the viewport is shared by all WebViews (#36312) 2025-04-04 17:06:34 +00:00
Cargo.toml Lazily initialize canvas paint thread in constellation (#37765) 2025-06-28 17:29:11 +00:00
constellation.rs Webdriver: Send Keys use webview::notify_input_event (#37911) 2025-07-10 12:37:01 +00:00
constellation_webview.rs constellation: Pass system theme to new Pipelines (#37132) 2025-05-26 12:05:38 +00:00
event_loop.rs compositor: Tick animations for an entire WebView at once (#36662) 2025-04-24 19:03:14 +00:00
lib.rs constellation: Pass system theme to new Pipelines (#37132) 2025-05-26 12:05:38 +00:00
logging.rs Move ScriptToConstellationMsg to constellation_traits (#36364) 2025-04-05 22:13:29 +00:00
pipeline.rs Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
process_manager.rs Make the memory reporting multi-process aware (#35863) 2025-04-05 05:42:12 +00:00
sandboxing.rs constellation: add multiprocess support on Windows (#37580) 2025-06-21 02:32:18 +00:00
serviceworker.rs Move ScriptToConstellationMsg to constellation_traits (#36364) 2025-04-05 22:13:29 +00:00
session_history.rs Move ScriptToConstellationMsg to constellation_traits (#36364) 2025-04-05 22:13:29 +00:00
tracing.rs script: Get the window rectangle from the WebViewDelegate instead of via the compositor (#37960) 2025-07-11 18:31:24 +00:00
webview_manager.rs Reduce indexing boilerplate for serializable/transferrable objects. (#36624) 2025-04-22 02:02:02 +00:00