Temporarily landing patches for bug 130078. Will be backed out when it lands for real.

This commit is contained in:
Jim Mathies 2010-08-20 18:24:40 -05:00
parent 444f617901
commit ee8930467d

View File

@ -2388,9 +2388,7 @@ DocumentViewerImpl::FindContainerView()
{ {
nsIView* containerView = nsnull; nsIView* containerView = nsnull;
if (mParentWidget) { if (mContainer) {
containerView = nsIView::GetViewFor(mParentWidget);
} else if (mContainer) {
nsCOMPtr<nsIDocShellTreeItem> docShellItem = do_QueryReferent(mContainer); nsCOMPtr<nsIDocShellTreeItem> docShellItem = do_QueryReferent(mContainer);
nsCOMPtr<nsPIDOMWindow> pwin(do_GetInterface(docShellItem)); nsCOMPtr<nsPIDOMWindow> pwin(do_GetInterface(docShellItem));
if (pwin) { if (pwin) {