Bug 1184004 part.3 IPC methods to notify IME should use IMENotification for its argument r=smaug

This commit is contained in:
Masayuki Nakano
2015-07-17 13:30:01 +09:00
parent d9cfd339e2
commit 310fa5311b
7 changed files with 55 additions and 95 deletions

View File

@@ -960,15 +960,8 @@ ContentCacheInParent::RequestToCommitComposition(nsIWidget* aWidget,
void
ContentCacheInParent::MaybeNotifyIME(nsIWidget* aWidget,
IMENotification& aNotification)
const IMENotification& aNotification)
{
if (aNotification.mMessage == NOTIFY_IME_OF_SELECTION_CHANGE) {
aNotification.mSelectionChangeData.mOffset = mSelection.StartOffset();
aNotification.mSelectionChangeData.mLength = mSelection.Length();
aNotification.mSelectionChangeData.mReversed = mSelection.Reversed();
aNotification.mSelectionChangeData.SetWritingMode(mSelection.mWritingMode);
}
if (!mPendingEventsNeedingAck) {
IMEStateManager::NotifyIME(aNotification, aWidget, true);
return;