mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Implement TakeElementScreenshot WebDriver command
This commit is contained in:
parent
a084997afe
commit
d3696baf27
12 changed files with 134 additions and 28 deletions
|
@ -2198,6 +2198,14 @@ impl ScriptThread {
|
|||
WebDriverScriptCommand::GetElementRect(node_id, reply) => {
|
||||
webdriver_handlers::handle_get_rect(&*documents, pipeline_id, node_id, reply)
|
||||
},
|
||||
WebDriverScriptCommand::GetBoundingClientRect(node_id, reply) => {
|
||||
webdriver_handlers::handle_get_bounding_client_rect(
|
||||
&*documents,
|
||||
pipeline_id,
|
||||
node_id,
|
||||
reply,
|
||||
)
|
||||
},
|
||||
WebDriverScriptCommand::GetElementText(node_id, reply) => {
|
||||
webdriver_handlers::handle_get_text(&*documents, pipeline_id, node_id, reply)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue