aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2019-08-09 20:30:56 +0300
committerGeorge Roman <george.roman.99@gmail.com>2019-08-20 00:52:46 +0300
commitd3696baf27fb77d67b012a90403b6c699ca40484 (patch)
treec88883dd1e912a51c1b9a0752c1d5b8b78a96007 /components/script/script_thread.rs
parenta084997afee23bb541e89a807905ff1c815a649e (diff)
downloadservo-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.rs8
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)
},