Bug 975383 part.2 Remove compositionupdate dispatchers in nsWindow of Android r=nchen

This commit is contained in:
Masayuki Nakano 2014-10-03 15:33:48 +09:00
parent a1f5e6c914
commit b3361bda6f

View File

@ -1844,12 +1844,6 @@ nsWindow::OnIMEEvent(AndroidGeckoEvent *ae)
}
}
{
WidgetCompositionEvent event(true, NS_COMPOSITION_UPDATE, this);
InitEvent(event, nullptr);
event.data = ae->Characters();
DispatchEvent(&event);
}
{
WidgetTextEvent event(true, NS_TEXT_TEXT, this);
InitEvent(event, nullptr);
@ -2010,15 +2004,6 @@ nsWindow::OnIMEEvent(AndroidGeckoEvent *ae)
event.theText = mIMEComposingText;
}
{
WidgetCompositionEvent compositionUpdate(true,
NS_COMPOSITION_UPDATE,
this);
InitEvent(compositionUpdate, nullptr);
compositionUpdate.data = event.theText;
DispatchEvent(&compositionUpdate);
}
#ifdef DEBUG_ANDROID_IME
const NS_ConvertUTF16toUTF8 theText8(event.theText);
const char* text = theText8.get();
@ -2101,11 +2086,6 @@ nsWindow::NotifyIME(const IMENotification& aIMENotification)
if (mIMEComposing) {
nsRefPtr<nsWindow> kungFuDeathGrip(this);
WidgetCompositionEvent updateEvent(true, NS_COMPOSITION_UPDATE,
this);
InitEvent(updateEvent, nullptr);
DispatchEvent(&updateEvent);
WidgetTextEvent textEvent(true, NS_TEXT_TEXT, this);
InitEvent(textEvent, nullptr);
DispatchEvent(&textEvent);