From 92b91c9e1cdb49c38606e6b3866e1c18be838ba8 Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Fri, 27 Aug 2010 18:15:08 -0500 Subject: [PATCH] Bug 130078. Part 1.1. Update part 1 to deal with changes from bug 513162. r=roc --- layout/base/nsDocumentViewer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 0a7ade02f1e6..4e2b6c293a6f 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -2388,9 +2388,7 @@ DocumentViewerImpl::FindContainerView() { nsIView* containerView = nsnull; - if (mParentWidget) { - containerView = nsIView::GetViewFor(mParentWidget); - } else if (mContainer) { + if (mContainer) { nsCOMPtr docShellItem = do_QueryReferent(mContainer); nsCOMPtr pwin(do_GetInterface(docShellItem)); if (pwin) {