249
249
// make sure input field is visible before showing popup (bug 320938)
250
250
nsCOMPtr<nsIContent> content = do_QueryInterface(mFocusedInput);
251
252
nsCOMPtr<nsIDocShell> docShell = GetDocShellForInput(mFocusedInput);
252
254
nsCOMPtr<nsIPresShell> presShell;
253
255
docShell->GetPresShell(getter_AddRefs(presShell));
254
257
nsIFrame *frame = nsnull;
255
258
presShell->GetPrimaryFrameFor(content.get(), &frame);