Bug 1153948 - Fix bug in sending text change notifications; r=esawin
authorJim Chen <nchen@mozilla.com>
Fri, 17 Apr 2015 12:22:47 -0400
changeset 239742 9443f805a17a4b8152798aeba26e3909540bd28f
parent 239741 84a83069abb5c8265d69f47156308a6b13aa87a2
child 239743 a80c2504ff2f9a78ab6330d7019ef95e0aca45f4
push id28610
push userphilringnalda@gmail.com
push dateSat, 18 Apr 2015 23:37:38 +0000
treeherdermozilla-central@0500d91113bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersesawin
bugs1153948
milestone40.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 1153948 - Fix bug in sending text change notifications; r=esawin
widget/android/nsWindow.cpp
--- a/widget/android/nsWindow.cpp
+++ b/widget/android/nsWindow.cpp
@@ -2284,18 +2284,18 @@ nsWindow::NotifyIMEOfTextChange(const IM
             aIMENotification.mTextChangeData.mStartOffset,
             aIMENotification.mTextChangeData.mOldEndOffset,
             aIMENotification.mTextChangeData.mNewEndOffset);
 
     /* Make sure Java's selection is up-to-date */
     mIMESelectionChanged = false;
     NotifyIME(NOTIFY_IME_OF_SELECTION_CHANGE);
 
+    PostFlushIMEChanges();
     AddIMETextChange(IMEChange(aIMENotification));
-    PostFlushIMEChanges();
     return NS_OK;
 }
 
 void
 nsWindow::AddIMETextChange(const IMEChange& aChange) {
 
     mIMETextChanges.AppendElement(aChange);