small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575

git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
2000-09-14 11:45:01 +00:00
parent a3f38f63e7
commit 2fc6190bef
168 changed files with 1687 additions and 3324 deletions

View File

@@ -1311,7 +1311,7 @@ nsWebShell::SelectAll(void)
nsCOMPtr<nsISelectionController> selCon = do_QueryInterface(presShell);
if (NS_FAILED(rv) || !selCon) return rv;
nsCOMPtr<nsIDOMSelection> selection;
nsCOMPtr<nsISelection> selection;
rv = selCon->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(selection));
if (NS_FAILED(rv) || !selection) return rv;
@@ -1341,7 +1341,7 @@ nsWebShell::SelectAll(void)
if (NS_FAILED(rv) || !range) return rv;
#endif
rv = selection->ClearSelection();
rv = selection->RemoveAllRanges();
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDOMRange> range;