servo/components/shared/embedder
Euclid Ye 0329f33520
[WebDriver] Reuse "Find Elements" handler in "Find element" (#37737)
All "Find Element ..." in
[spec](https://w3c.github.io/webdriver/#find-element-from-element) has
exactly same step has "Find Elements ...", except they extract the first
element if there is any. We now reuse the handler instead of running
numerous repetitive steps, same as what we did for ["Find Element from
Shadow
Root"](https://w3c.github.io/webdriver/#find-element-from-shadow-root)
in #37578.

This reduces binary size by 98KB for Release profile in Windows and
improves maintainability.

Testing: `./mach test-wpt -r
.\tests\wpt\tests\webdriver\tests\classic\find_element* --product
servodriver`

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
2025-06-27 08:45:58 +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] Reuse "Find Elements" handler in "Find element" (#37737) 2025-06-27 08:45:58 +00:00