mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 975383 part.2 Remove compositionupdate dispatchers in nsWindow of Android r=nchen
This commit is contained in:
parent
a1f5e6c914
commit
b3361bda6f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user