servo/components/shared/embedder
Euclid Ye 2e3c280f46
webdriver: improve perform pointermove & wheel actions with more accurate coordinates (#38095)
1. Create `get_origin_relative_coordinates` according to
[spec](https://w3c.github.io/webdriver/#dfn-get-coordinates-relative-to-an-origin)
to be reused
2. Add previously missing offset for PointerOrigin::Element
3. Refactor code for perform pointermove/wheel to be closer to spec.
4. Handle some issues with spec:
https://github.com/w3c/webdriver/issues/1758

Testing: Several new passing cases as we are more precise with
coordinates now.
Fixes: Part of #38042.

---------

Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
2025-07-16 02:03:34 +00:00
..
build.rs Set the cfg properly for the production-stripped profile (#32991) 2024-08-09 09:16:51 +00:00
Cargo.toml Webdriver GoBack and GoForward commands wait for navigation complete (#37950) 2025-07-15 10:41:50 +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 Webdriver GoBack and GoForward commands wait for navigation complete (#37950) 2025-07-15 10:41:50 +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: improve perform pointermove & wheel actions with more accurate coordinates (#38095) 2025-07-16 02:03:34 +00:00