Bug 1466910 - 6. Fix logging code; r=me draft
authorJim Chen <nchen@mozilla.com>
Mon, 18 Jun 2018 12:48:46 -0400
changeset 808188 1e1bdd8b5e5023510a785d37b1eb0764f0c799d1
parent 808187 b0bfb28398ea70c07d1d439fe9e74c6243fd4e2d
child 808189 4595250972a9c781073aa8e1d308cd8ba64183c2
push id113305
push userbmo:nchen@mozilla.com
push dateMon, 18 Jun 2018 16:49:25 +0000
reviewersme
bugs1466910
milestone62.0a1
Bug 1466910 - 6. Fix logging code; r=me MozReview-Commit-ID: BbRJBSN5YMV
widget/android/GeckoEditableSupport.cpp
--- a/widget/android/GeckoEditableSupport.cpp
+++ b/widget/android/GeckoEditableSupport.cpp
@@ -1183,20 +1183,20 @@ GeckoEditableSupport::OnImeUpdateComposi
         }
     } else {
         // If the new composition matches the existing composition,
         // reuse the old composition.
         string = composition->String();
     }
 
 #ifdef DEBUG_ANDROID_IME
-    const NS_ConvertUTF16toUTF8 data(event.mData);
+    const NS_ConvertUTF16toUTF8 data(string);
     const char* text = data.get();
     ALOGIME("IME: IME_SET_TEXT: text=\"%s\", length=%u, range=%u",
-            text, event.mData.Length(), event.mRanges->Length());
+            text, string.Length(), mIMERanges->Length());
 #endif // DEBUG_ANDROID_IME
 
     if (NS_WARN_IF(NS_FAILED(BeginInputTransaction(mDispatcher)))) {
         mIMERanges->Clear();
         return;
     }
     mDispatcher->SetPendingComposition(string, mIMERanges);
     mDispatcher->FlushPendingComposition(status);