servo/components/servo
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
..
examples Fix unused import TouchEventType warning (#37900) 2025-07-05 21:48:39 +00:00
tests constellation: Pass system theme to new Pipelines (#37132) 2025-05-26 12:05:38 +00:00
build.rs Mergeruff.toml into pyproject.toml (#37741) 2025-07-04 12:21:48 +00:00
Cargo.toml Lazily initialize canvas paint thread in constellation (#37765) 2025-06-28 17:29:11 +00:00
clipboard_delegate.rs libservo: Add a ClipboardDelegate and a default implementation (#35297) 2025-02-07 10:43:46 +00:00
javascript_evaluator.rs libservo: Allow embedders to execute JavaScript scripts via the API (#35720) 2025-05-13 12:54:18 +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
proxies.rs constellation: Rename messages sent to the Constellation (#36341) 2025-04-04 19:39:38 +00:00
responders.rs libservo: Notify delegates of send errors in request objects (#35668) 2025-03-19 06:41:14 +00:00
servo_delegate.rs libservo: Move animation tracking from WindowMethods to delegates (#36400) 2025-04-09 19:41:53 +00:00
webview.rs libservo|compositor: Have scroll offset directionality match that of WebRender and the web (#37752) 2025-07-03 13:04:06 +00:00
webview_delegate.rs [WebDriver] Add synchronization for key action (#37403) 2025-06-18 07:26:44 +00:00