mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
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:
parent
2fbf4b340c
commit
7cdf9925ca
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user