Bug 130078. Part 2. Remove widgets from all subframes. r=dbaron

This commit is contained in:
Robert O'Callahan 2010-08-27 18:15:08 -05:00
Родитель 2421fcc21d
Коммит 3b53c23c93
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -966,15 +966,6 @@ nsSubDocumentFrame::CreateViewAndWidget(nsContentType aContentType)
mInnerView = innerView; mInnerView = innerView;
viewMan->InsertChild(outerView, innerView, nsnull, PR_TRUE); 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; return mInnerView;
} }