diff options
author | George Roman <george.roman.99@gmail.com> | 2019-08-09 20:30:56 +0300 |
---|---|---|
committer | George Roman <george.roman.99@gmail.com> | 2019-08-20 00:52:46 +0300 |
commit | d3696baf27fb77d67b012a90403b6c699ca40484 (patch) | |
tree | c88883dd1e912a51c1b9a0752c1d5b8b78a96007 /components/script/script_thread.rs | |
parent | a084997afee23bb541e89a807905ff1c815a649e (diff) | |
download | servo-d3696baf27fb77d67b012a90403b6c699ca40484.tar.gz servo-d3696baf27fb77d67b012a90403b6c699ca40484.zip |
Implement TakeElementScreenshot WebDriver command
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index e5bfd5ebe8f..3f547d7cfd6 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -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) }, |