Make nsIPresShell::GetPrimaryFrameFor return nsIFrame* instead of using an out

param.  Bug 303779, patch by Bastiaan Jacques <b.jacques@planet.nl>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@178642 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2005-08-22 22:24:29 +00:00
parent 306d9c4922
commit d1afb179ba
72 changed files with 231 additions and 379 deletions

View File

@@ -426,7 +426,7 @@ void nsWebBrowserFind::SetSelectionAndScroll(nsIDOMWindow* aWindow,
nsCOMPtr<nsIContent> content(do_QueryInterface(node));
for ( ; content; content = content->GetParent()) {
if (!content->IsNativeAnonymous()) {
presShell->GetPrimaryFrameFor(content, &frame);
frame = presShell->GetPrimaryFrameFor(content);
if (!frame)
return;
CallQueryInterface(frame, &tcFrame);
@@ -846,7 +846,7 @@ nsWebBrowserFind::GetFrameSelection(nsIDOMWindow* aWindow,
focusController->GetFocusedElement(getter_AddRefs(focusedElement));
if (focusedElement) {
nsCOMPtr<nsIContent> content(do_QueryInterface(focusedElement));
presShell->GetPrimaryFrameFor(content, &frame);
frame = presShell->GetPrimaryFrameFor(content);
}
}
}