зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1167105 - Part 1. Set temporary range until OnSelectionChange is called. r=masayuki
This commit is contained in:
Родитель
c6fe51dba6
Коммит
89466de2cb
|
@ -2925,6 +2925,13 @@ IMEInputHandler::SetMarkedText(NSAttributedString* aAttrString,
|
|||
if (!str.IsEmpty()) {
|
||||
OnUpdateIMEComposition([aAttrString string]);
|
||||
|
||||
// Set temprary range for Apple Japanese IME with e10s because
|
||||
// SelectedRange may return invalid range until OnSelectionChange is
|
||||
// called from content process.
|
||||
// This value will be updated by OnSelectionChange soon.
|
||||
mSelectedRange.location = aSelectedRange.location + mMarkedRange.location;
|
||||
mSelectedRange.length = aSelectedRange.length;
|
||||
|
||||
DispatchCompositionChangeEvent(str, aAttrString, aSelectedRange);
|
||||
if (Destroyed()) {
|
||||
MOZ_LOG(gLog, LogLevel::Info,
|
||||
|
|
Загрузка…
Ссылка в новой задаче