Bug 327868: nsIFrameSelection cleanup. r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@190633 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sharparrow1%yahoo.com
2006-02-21 00:49:04 +00:00
parent ef47d880f1
commit c7989ee277
10 changed files with 157 additions and 632 deletions

View File

@@ -426,19 +426,14 @@ void nsWebBrowserFind::SetSelectionAndScroll(nsIDOMWindow* aWindow,
if (!frame)
return;
CallQueryInterface(frame, &tcFrame);
break;
}
}
nsCOMPtr<nsISelection> selection;
nsCOMPtr<nsISelectionController> selCon;
if (!tcFrame) {
selCon = do_QueryInterface(presShell);
}
else {
tcFrame->GetSelectionContr(getter_AddRefs(selCon));
}
frame->GetSelectionController(presShell->GetPresContext(),
getter_AddRefs(selCon));
selCon->SetDisplaySelection(nsISelectionController::SELECTION_ON);
selCon->GetSelection(nsISelectionController::SELECTION_NORMAL,