From 0d61b120354e3e18c27a076b3cd9022aadef6c7f Mon Sep 17 00:00:00 2001 From: AutomatedTester Date: Sat, 7 Mar 2015 12:41:53 +0000 Subject: [PATCH] webdriver: Merge pull request #4 from AutomatedTester/rect Update getElementRect to expect floats to be returned to it Source-Repo: https://github.com/mozilla/webdriver-rust Source-Revision: 6c891a20996ed866621eecae5ae29230f22f95fd --HG-- extra : subtree_source : http%3A//tristan.corp.lon2.mozilla.com%3A8000 extra : subtree_revision : 9bda711ae7a6b7b94d70e35d9c5705ed55eb40a6 --- testing/webdriver/src/response.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testing/webdriver/src/response.rs b/testing/webdriver/src/response.rs index 5874900116d11..fe6c8de8b15be 100644 --- a/testing/webdriver/src/response.rs +++ b/testing/webdriver/src/response.rs @@ -72,14 +72,14 @@ impl WindowSizeResponse { #[derive(RustcEncodable, Debug)] pub struct ElementRectResponse { - x: u64, - y: u64, - width: u64, - height: u64 + x: f64, + y: f64, + width: f64, + height: f64 } impl ElementRectResponse { - pub fn new(x: u64, y: u64, width: u64, height: u64) -> ElementRectResponse { + pub fn new(x: f64, y: f64, width: f64, height: f64) -> ElementRectResponse { ElementRectResponse { x: x, y: y,