From 3b53c23c93f9ac5c2d0a9f76e4fde9b602fc83a3 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 27 Aug 2010 18:15:08 -0500 Subject: [PATCH] Bug 130078. Part 2. Remove widgets from all subframes. r=dbaron --- layout/generic/nsFrameFrame.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/layout/generic/nsFrameFrame.cpp b/layout/generic/nsFrameFrame.cpp index 1e0a92b51f7..dc69eb6dadc 100644 --- a/layout/generic/nsFrameFrame.cpp +++ b/layout/generic/nsFrameFrame.cpp @@ -966,15 +966,6 @@ nsSubDocumentFrame::CreateViewAndWidget(nsContentType aContentType) mInnerView = innerView; viewMan->InsertChild(outerView, innerView, nsnull, PR_TRUE); - if (aContentType == eContentTypeContent) { - // widget needed. - nsresult rv = innerView->CreateWidget(nsnull, - PR_TRUE, PR_TRUE, aContentType); - if (NS_FAILED(rv)) { - NS_WARNING("Couldn't create widget for frame."); - mInnerView = nsnull; - } - } return mInnerView; }