mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 350495, Crashes [@ nsFormFillController::SetPopupOpen], r=jst
This commit is contained in:
parent
e09105ffab
commit
a5be8b14c8
@ -220,8 +220,10 @@ nsFormFillController::SetPopupOpen(PRBool aPopupOpen)
|
||||
// make sure input field is visible before showing popup (bug 320938)
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(mFocusedInput);
|
||||
nsCOMPtr<nsIDocShell> docShell = GetDocShellForInput(mFocusedInput);
|
||||
NS_ENSURE_STATE(docShell);
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
docShell->GetPresShell(getter_AddRefs(presShell));
|
||||
NS_ENSURE_STATE(presShell);
|
||||
nsIFrame *frame = presShell->GetPrimaryFrameFor(content.get());
|
||||
if (frame)
|
||||
presShell->ScrollFrameIntoView(frame,
|
||||
|
Loading…
Reference in New Issue
Block a user