mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1110917 Part 3 - Remove HTMLElement.location usage in selection.py. r=automatedtester
This commit is contained in:
parent
8481b4ddea
commit
d307c03103
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user