servo/components/shared/embedder
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
..
build.rs Set the cfg properly for the production-stripped profile (#32991) 2024-08-09 09:16:51 +00:00
Cargo.toml servoshell: Use DeviceIndependentPixel for WebDriver Rect related requests (#37893) 2025-07-09 03:56:27 +00:00
input_events.rs libservo: Allow embedders to signal when the cursor has left the WebView (#37317) 2025-06-18 11:59:11 +00:00
lib.rs script: Get the window rectangle from the WebViewDelegate instead of via the compositor (#37960) 2025-07-11 18:31:24 +00:00
resources.rs Replace hsts preload list hashmap with an FST (#37015) 2025-05-20 04:26:55 +00:00
user_content_manager.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
webdriver.rs Chore: cleanup unused EmbedderMsg::WebDriverCommand (#37979) 2025-07-10 12:54:46 +00:00