зеркало из https://github.com/mozilla/gecko-dev.git
Bug 359790 set text doesn't work correctly for XUL entry
patch by nian.liu at sun.com r=ginn.chen
This commit is contained in:
Родитель
2fbf4b340c
Коммит
7cdf9925ca
|
@ -1357,10 +1357,16 @@ nsresult nsHyperTextAccessible::GetSelections(nsISelectionController **aSelCon,
|
||||||
|
|
||||||
nsCOMPtr<nsIEditor> editor = GetEditor();
|
nsCOMPtr<nsIEditor> editor = GetEditor();
|
||||||
if (editor) {
|
if (editor) {
|
||||||
editor->GetSelectionController(aSelCon);
|
if (aSelCon) {
|
||||||
NS_ENSURE_TRUE(aSelCon, NS_ERROR_FAILURE);
|
editor->GetSelectionController(aSelCon);
|
||||||
editor->GetSelection(aDomSel);
|
NS_ENSURE_TRUE(aSelCon, NS_ERROR_FAILURE);
|
||||||
NS_ENSURE_TRUE(aDomSel, NS_ERROR_FAILURE);
|
}
|
||||||
|
|
||||||
|
if (aDomSel) {
|
||||||
|
editor->GetSelection(aDomSel);
|
||||||
|
NS_ENSURE_TRUE(aDomSel, NS_ERROR_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче