Bug 1110917 - Part 3 - Remove HTMLElement.location usage in selection.py. r=dburns
authorJeremy Chen <jichen@mozilla.com>
Mon, 05 Jan 2015 13:34:24 +0800
changeset 224485 33a81cbadb6ea5973e350e6e8945ea01e950e5d4
parent 224484 ff34718d7f684fb781427fc053607416d9a9d819
child 224486 33ea628dd337bf1cba3daf8b36a07a4e40621375
push id28131
push usercbook@mozilla.com
push dateMon, 19 Jan 2015 15:10:25 +0000
treeherdermozilla-central@f8e4fdb89a05 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdburns
bugs1110917
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1110917 - Part 3 - Remove HTMLElement.location usage in selection.py. r=dburns
testing/marionette/client/marionette/selection.py
--- a/testing/marionette/client/marionette/selection.py
+++ b/testing/marionette/client/marionette/selection.py
@@ -100,17 +100,17 @@ class SelectionManager(object):
         considered.
 
         '''
         range_count = self.range_count();
         first_rect_list = self.selection_rect_list(0)
         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'
         else:
             start_pos, end_pos = 'left', 'right'
 
         # Calculate y offset according to different needs.
         if location_type == 'center':