From 28c59210ea8a264931724500045ee6f88280592a Mon Sep 17 00:00:00 2001 From: Jeremy Chen Date: Mon, 5 Jan 2015 13:34:24 +0800 Subject: [PATCH] Bug 1110917 Part 3 - Remove HTMLElement.location usage in selection.py. r=automatedtester --- testing/marionette/client/marionette/selection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/marionette/client/marionette/selection.py b/testing/marionette/client/marionette/selection.py index 714586652f1..2083892be22 100644 --- a/testing/marionette/client/marionette/selection.py +++ b/testing/marionette/client/marionette/selection.py @@ -105,7 +105,7 @@ class SelectionManager(object): last_rect_list = self.selection_rect_list(range_count - 1) last_list_length = last_rect_list['length'] first_rect, last_rect = first_rect_list['0'], last_rect_list[str(last_list_length - 1)] - origin_x, origin_y = self.element.location['x'], self.element.location['y'] + origin_x, origin_y = self.element.rect['x'], self.element.rect['y'] if self.element.get_attribute('dir') == 'rtl': # such as Arabic start_pos, end_pos = 'right', 'left'