diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-21 11:09:50 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-21 11:09:50 +0530 |
commit | 585d2d5c8c4e59be20ab9660dab75fc55438e247 (patch) | |
tree | 87ad7d13d6b4a2979ac8b24e38536f502758ed8f /components/script/script_task.rs | |
parent | 18ee6bc30a90855beb7574a5e7627b436e12c193 (diff) | |
parent | f7258e4fccf9b7f8efc4b3a33203cacfe47d647a (diff) | |
download | servo-585d2d5c8c4e59be20ab9660dab75fc55438e247.tar.gz servo-585d2d5c8c4e59be20ab9660dab75fc55438e247.zip |
Auto merge of #8621 - jgraham:webdriver_css, r=jdm
Add support for getting an element's computed style through WebDriver.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8621)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 2 |
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) => |