bug 825419 - outparamdel nsIDocShell::GetPresShell() r=smaug

This commit is contained in:
Trevor Saunders
2012-12-28 20:56:42 -05:00
parent dfec100718
commit 182f3ee366
24 changed files with 82 additions and 160 deletions

View File

@@ -288,8 +288,7 @@ nsFormFillController::SetPopupOpen(bool aPopupOpen)
NS_ENSURE_STATE(content);
nsCOMPtr<nsIDocShell> docShell = GetDocShellForInput(mFocusedInput);
NS_ENSURE_STATE(docShell);
nsCOMPtr<nsIPresShell> presShell;
docShell->GetPresShell(getter_AddRefs(presShell));
nsCOMPtr<nsIPresShell> presShell = docShell->GetPresShell();
NS_ENSURE_STATE(presShell);
presShell->ScrollContentIntoView(content,
nsIPresShell::ScrollAxis(