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:
ginn.chen%sun.com 2006-12-18 07:02:03 +00:00
Родитель 2fbf4b340c
Коммит 7cdf9925ca
1 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1357,10 +1357,16 @@ nsresult nsHyperTextAccessible::GetSelections(nsISelectionController **aSelCon,
nsCOMPtr<nsIEditor> editor = GetEditor();
if (editor) {
editor->GetSelectionController(aSelCon);
NS_ENSURE_TRUE(aSelCon, NS_ERROR_FAILURE);
editor->GetSelection(aDomSel);
NS_ENSURE_TRUE(aDomSel, NS_ERROR_FAILURE);
if (aSelCon) {
editor->GetSelectionController(aSelCon);
NS_ENSURE_TRUE(aSelCon, NS_ERROR_FAILURE);
}
if (aDomSel) {
editor->GetSelection(aDomSel);
NS_ENSURE_TRUE(aDomSel, NS_ERROR_FAILURE);
}
return NS_OK;
}