diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-01-18 01:29:26 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-01-18 14:22:15 +0530 |
commit | f7db4b7f8011239f01c3ba2e5e402c866fbe68fb (patch) | |
tree | a57f171e34f1df63302eeee5e7b7544baf461158 /components/script/webdriver_handlers.rs | |
parent | 2a594821ba44ba2c13e9a39c6fd8c5a450bd06f4 (diff) | |
download | servo-f7db4b7f8011239f01c3ba2e5e402c866fbe68fb.tar.gz servo-f7db4b7f8011239f01c3ba2e5e402c866fbe68fb.zip |
Modify `script` to prevent further violations of snake_case
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r-- | components/script/webdriver_handlers.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index cea4cca5c71..f177f8e4c30 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -383,14 +383,14 @@ fn get_element_in_view_center_point(element: &Element) -> Option<Point2D<i64>> { let width = rectangle.Width().round() as i64; let height = rectangle.Height().round() as i64; - let clientWidth = body.ClientWidth() as i64; - let clientHeight = body.ClientHeight() as i64; + let client_width = body.ClientWidth() as i64; + let client_height = body.ClientHeight() as i64; // Steps 2 - 5 let left = cmp::max(0, cmp::min(x, x + width)); - let right = cmp::min(clientWidth, cmp::max(x, x + width)); + let right = cmp::min(client_width, cmp::max(x, x + width)); let top = cmp::max(0, cmp::min(y, y + height)); - let bottom = cmp::min(clientHeight, cmp::max(y, y + height)); + let bottom = cmp::min(client_height, cmp::max(y, y + height)); // Steps 6 - 7 let x = (left + right) / 2; |