зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1386471 - Don't remove all ranges before calling SetText(); r=masayuki
This commit is contained in:
Родитель
55d2512f30
Коммит
99253c02a4
|
@ -2666,12 +2666,6 @@ nsTextEditorState::SetValue(const nsAString& aValue, const nsAString* aOldValue,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
AutoDisableUndo disableUndo(textEditor);
|
AutoDisableUndo disableUndo(textEditor);
|
||||||
if (domSel) {
|
|
||||||
// Since we don't use undo transaction, we don't need to store
|
|
||||||
// selection state. SetText will set selection to tail.
|
|
||||||
domSel->RemoveAllRanges();
|
|
||||||
}
|
|
||||||
|
|
||||||
textEditor->SetText(newValue);
|
textEditor->SetText(newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче