зеркало из https://github.com/mozilla/pjs.git
Bug 130078. Part 2. Remove widgets from all subframes. r=dbaron
This commit is contained in:
Родитель
2421fcc21d
Коммит
3b53c23c93
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче