Bug 801989 part.7 Set InputContext::mNativeIMEContext on Gonk r=cjones
authorMasayuki Nakano <masayuki@d-toybox.com>
Sat, 27 Oct 2012 08:35:21 +0900
changeset 111720 19a8337465acd5788d0dfb6ac87c4b02831aaa50
parent 111719 6bb7b517fcb3a1973041fe357163fb77e29e579b
child 111721 eace14fccc472a3c7dc416e402fabc5447db05e0
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewerscjones
bugs801989
milestone19.0a1
Bug 801989 part.7 Set InputContext::mNativeIMEContext on Gonk r=cjones
widget/gonk/nsWindow.cpp
--- a/widget/gonk/nsWindow.cpp
+++ b/widget/gonk/nsWindow.cpp
@@ -512,16 +512,18 @@ nsWindow::SetInputContext(const InputCon
                           const InputContextAction& aAction)
 {
     mInputContext = aContext;
 }
 
 NS_IMETHODIMP_(InputContext)
 nsWindow::GetInputContext()
 {
+    // There is only one IME context on Gonk.
+    mInputContext.mNativeIMEContext = nullptr;
     return mInputContext;
 }
 
 NS_IMETHODIMP
 nsWindow::ReparentNativeWidget(nsIWidget* aNewParent)
 {
     return NS_OK;
 }