mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 779930: RTL text handles don't flip over. [r=wesj, r=mfinkle]
--HG-- extra : rebase_source : acab202846e23d232749571be61862e317135cd8
This commit is contained in:
parent
a6f58ddeff
commit
34d574b3f2
@ -1981,8 +1981,8 @@ var SelectionHandler = {
|
||||
updateCacheForSelection: function sh_updateCacheForSelection(aIsStartHandle) {
|
||||
let selection = this.getSelection();
|
||||
let rects = selection.getRangeAt(0).getClientRects();
|
||||
let start = { x: rects[0].left, y: rects[0].bottom };
|
||||
let end = { x: rects[rects.length - 1].right, y: rects[rects.length - 1].bottom };
|
||||
let start = { x: this._isRTL ? rects[0].right : rects[0].left, y: rects[0].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;
|
||||
if (this.cache.start) {
|
||||
|
Loading…
Reference in New Issue
Block a user