servo/components/shared/embedder
Euclid Ye 94f35ba998
webdriver: Get the window position as well as the size when resolving "Get Window Rect" (#37812)
1. Rename `GetWindowSize` to `GetWindowRect`
2. Return the WindowRect in device pixels correctly. Previously, it
returns `(0, 0, ScreenWidth, ScreenHeight)` which is a static value.
3. Add `fn window_rect` to `WindowPortsMethods`. Implement it for both
Headless Window and Headed Window.

Testing: Tested manually with powershell script. Result is now dynamic
and reflects the truth.
Fixes: Task 1 & 2 of https://github.com/servo/servo/issues/37804

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
2025-07-02 10:01:27 +00:00
..
build.rs Set the cfg properly for the production-stripped profile (#32991) 2024-08-09 09:16:51 +00:00
Cargo.toml constellation: Pass system theme to new Pipelines (#37132) 2025-05-26 12:05:38 +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: Pass more information to the MouseEvent constructor (#37672) 2025-06-25 12:29:27 +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 webdriver: Get the window position as well as the size when resolving "Get Window Rect" (#37812) 2025-07-02 10:01:27 +00:00