Bug 1128187 - Supply RTL for Caret-Handle, r=rnewman
authorMark Capella <markcapella@twcny.rr.com>
Fri, 06 Feb 2015 00:30:38 -0500
changeset 227774 946346db74bb3216ac5fa472d34f97706e75e218
parent 227773 e0e812319eaeca663f61fa8cac50ce58e7c6d68a
child 227775 470368b135b7f0b9cbc636732e307fe850d7ea3d
push id28239
push userryanvm@gmail.com
push dateFri, 06 Feb 2015 13:52:40 +0000
treeherdermozilla-central@03b0004eba32 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs1128187
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 1128187 - Supply RTL for Caret-Handle, r=rnewman
mobile/android/chrome/content/SelectionHandler.js
--- a/mobile/android/chrome/content/SelectionHandler.js
+++ b/mobile/android/chrome/content/SelectionHandler.js
@@ -1238,16 +1238,17 @@ var SelectionHandler = {
                                                            this._domWinUtils.QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK);
       // the return value from sendQueryContentEvent is in LayoutDevice pixels and we want CSS pixels, so
       // divide by the pixel ratio
       let x = cursor.left / window.devicePixelRatio;
       let y = (cursor.top + cursor.height) / window.devicePixelRatio;
       return [{ handle: this.HANDLE_TYPE_CARET,
                 left: x + scroll.X,
                 top: y + scroll.Y,
+                rtl: this._targetIsRTL,
                 hidden: checkHidden(x, y) }];
     } else {
       let anchorX = this._cache.anchorPt.x;
       let anchorY = this._cache.anchorPt.y;
       let focusX = this._cache.focusPt.x;
       let focusY = this._cache.focusPt.y;
 
       // Translate coordinates to account for selections in sub-frames. We can't cache