mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1077345 part.10 nsTextStore should use NS_COMPOSITION_COMMIT event r=emk
This commit is contained in:
parent
fa4d0805b0
commit
2f05a812fe
@ -1674,24 +1674,12 @@ nsTextStore::FlushPendingActions()
|
||||
|
||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
||||
("TSF: 0x%p nsTextStore::FlushPendingActions(), "
|
||||
"dispatching compositionchange event...", this));
|
||||
WidgetCompositionEvent compositionChange(true, NS_COMPOSITION_CHANGE,
|
||||
"dispatching compositioncommit event...", this));
|
||||
WidgetCompositionEvent compositionCommit(true, NS_COMPOSITION_COMMIT,
|
||||
mWidget);
|
||||
mWidget->InitEvent(compositionChange);
|
||||
compositionChange.mData = action.mData;
|
||||
mWidget->DispatchWindowEvent(&compositionChange);
|
||||
if (!mWidget || mWidget->Destroyed()) {
|
||||
break;
|
||||
}
|
||||
|
||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
||||
("TSF: 0x%p nsTextStore::FlushPendingActions(), "
|
||||
"dispatching compositionend event...", this));
|
||||
WidgetCompositionEvent compositionEnd(true, NS_COMPOSITION_END,
|
||||
mWidget);
|
||||
compositionEnd.mData = compositionChange.mData;
|
||||
mWidget->InitEvent(compositionEnd);
|
||||
mWidget->DispatchWindowEvent(&compositionEnd);
|
||||
mWidget->InitEvent(compositionCommit);
|
||||
compositionCommit.mData = action.mData;
|
||||
mWidget->DispatchWindowEvent(&compositionCommit);
|
||||
if (!mWidget || mWidget->Destroyed()) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user