Bug 779930: Reflect the images for RTL. [r=wesj, r=mfinkle]

This commit is contained in:
Sriram Ramasubramanian
2012-10-31 21:49:15 -07:00
parent 7e311f06e6
commit 46fa28cb73
7 changed files with 58 additions and 20 deletions

View File

@@ -105,6 +105,7 @@ class TextSelection extends Layer implements GeckoEventListener {
}
});
} else if (event.equals("TextSelection:PositionHandles")) {
final boolean rtl = message.getBoolean("rtl");
final JSONArray positions = message.getJSONArray("positions");
GeckoApp.mAppContext.mMainHandler.post(new Runnable() {
public void run() {
@@ -116,7 +117,7 @@ class TextSelection extends Layer implements GeckoEventListener {
TextSelectionHandle handle = getHandle(position.getString("handle"));
handle.setVisibility(position.getBoolean("hidden") ? View.GONE : View.VISIBLE);
handle.positionFromGecko(left, top);
handle.positionFromGecko(left, top, rtl);
}
} catch (Exception e) { }
}