diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2015-03-25 01:16:08 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2015-03-25 10:45:30 +0900 |
commit | 9cd1b2c158f6a92aa48ed2702f591109b7a32eaa (patch) | |
tree | c4a76b71d56f4759b099c4e34b70889b76553e0e /components/script/devtools.rs | |
parent | 4c96732077d8152055a8988403f07db1277b50a7 (diff) | |
download | servo-9cd1b2c158f6a92aa48ed2702f591109b7a32eaa.tar.gz servo-9cd1b2c158f6a92aa48ed2702f591109b7a32eaa.zip |
Use Finite<T> for our dom code (excluding CanvasRenderingContext2D)
Diffstat (limited to 'components/script/devtools.rs')
-rw-r--r-- | components/script/devtools.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/devtools.rs b/components/script/devtools.rs index 051002c7478..7071d2fa0f5 100644 --- a/components/script/devtools.rs +++ b/components/script/devtools.rs @@ -87,7 +87,9 @@ pub fn handle_get_layout(page: &Rc<Page>, pipeline: PipelineId, node_id: String, let node = find_node_by_unique_id(&*page, pipeline, node_id).root(); let elem: JSRef<Element> = ElementCast::to_ref(node.r()).expect("should be getting layout of element"); let rect = elem.GetBoundingClientRect().root(); - reply.send((rect.r().Width(), rect.r().Height())).unwrap(); + let width = *rect.r().Width(); + let height = *rect.r().Height(); + reply.send((width, height)).unwrap(); } pub fn handle_modify_attribute(page: &Rc<Page>, pipeline: PipelineId, node_id: String, modifications: Vec<Modification>) { |