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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user