diff --git a/layout/generic/nsFrameFrame.cpp b/layout/generic/nsFrameFrame.cpp index f870afd6625..6b53c88e404 100644 --- a/layout/generic/nsFrameFrame.cpp +++ b/layout/generic/nsFrameFrame.cpp @@ -1017,6 +1017,11 @@ nsSubDocumentFrame::CreateViewAndWidget(nsContentType aContentType) mInnerView = innerView; viewMan->InsertChild(outerView, innerView, nsnull, PR_TRUE); + if (aContentType == eContentTypeContentFrame) { + // No widget needed. + return NS_OK; + } + return innerView->CreateWidget(kCChildCID, nsnull, nsnull, PR_TRUE, PR_TRUE, aContentType); }