зеркало из https://github.com/mozilla/gecko-dev.git
Bug 308023: Bidi: Caret positioned incorrectly after deleting last character of reverse-direction text and then typing. Patch by Uri Bernstein <uriber@gmail.com>, r+sr=roc
This commit is contained in:
Родитель
5983016e5e
Коммит
3c6dcebbdd
|
@ -399,6 +399,9 @@ nsTextEditRules::WillInsert(nsISelection *aSelection, PRBool *aCancel)
|
|||
nsresult
|
||||
nsTextEditRules::DidInsert(nsISelection *aSelection, nsresult aResult)
|
||||
{
|
||||
// Attach to the frame now before the caret
|
||||
nsCOMPtr<nsISelectionPrivate>selPrivate(do_QueryInterface(aSelection));
|
||||
selPrivate->SetInterlinePosition(PR_FALSE);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче