Bug 779930: RTL text handles don't flip over. [r=wesj, r=mfinkle]

--HG--
extra : rebase_source : acab202846e23d232749571be61862e317135cd8
This commit is contained in:
Sriram Ramasubramanian 2012-10-31 15:52:47 -07:00
Родитель 5ddc0d7a14
Коммит a982934db3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1981,8 +1981,8 @@ var SelectionHandler = {
updateCacheForSelection: function sh_updateCacheForSelection(aIsStartHandle) { updateCacheForSelection: function sh_updateCacheForSelection(aIsStartHandle) {
let selection = this.getSelection(); let selection = this.getSelection();
let rects = selection.getRangeAt(0).getClientRects(); let rects = selection.getRangeAt(0).getClientRects();
let start = { x: rects[0].left, y: rects[0].bottom }; let start = { x: this._isRTL ? rects[0].right : rects[0].left, y: rects[0].bottom };
let end = { x: rects[rects.length - 1].right, y: rects[rects.length - 1].bottom }; let end = { x: this._isRTL ? rects[rects.length - 1].left : rects[rects.length - 1].right, y: rects[rects.length - 1].bottom };
let selectionReversed = false; let selectionReversed = false;
if (this.cache.start) { if (this.cache.start) {