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; }