aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2015-10-23 00:48:55 +0100
committerJames Graham <james@hoppipolla.co.uk>2015-11-20 13:23:38 +0000
commitf7258e4fccf9b7f8efc4b3a33203cacfe47d647a (patch)
tree32a54e8f5a8e4df247c36747a5af077807e86ad6 /components/script/script_task.rs
parent0146751bb227e577f54c4c0574ae36236e2bcdce (diff)
downloadservo-f7258e4fccf9b7f8efc4b3a33203cacfe47d647a.tar.gz
servo-f7258e4fccf9b7f8efc4b3a33203cacfe47d647a.zip
Add support for getting an element's computed style through WebDriver.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 043c0574be1..86e1493409c 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -1108,6 +1108,8 @@ impl ScriptTask {
webdriver_handlers::handle_get_name(&page, pipeline_id, node_id, reply),
WebDriverScriptCommand::GetElementAttribute(node_id, name, reply) =>
webdriver_handlers::handle_get_attribute(&page, pipeline_id, node_id, name, reply),
+ WebDriverScriptCommand::GetElementCSS(node_id, name, reply) =>
+ webdriver_handlers::handle_get_css(&page, pipeline_id, node_id, name, reply),
WebDriverScriptCommand::GetElementText(node_id, reply) =>
webdriver_handlers::handle_get_text(&page, pipeline_id, node_id, reply),
WebDriverScriptCommand::GetFrameId(frame_id, reply) =>