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