nsWidgetInitData initData; initData.clipChildren = PR_TRUE; initData.clipSiblings = PR_TRUE;
nsSubDocumentFrame::CreateViewAndWidget(nsContentType aContentType){  // create, init, set the parent of the view  nsIView* outerView = GetView();  NS_ASSERTION(outerView, "Must have an outer view already");  nsRect viewBounds(0, 0, 0, 0); // size will be fixed during reflow  nsIViewManager* viewMan = outerView->GetViewManager();  // Create the inner view hidden if the outer view is already hidden  // (it won't get hidden properly otherwise)  nsIView* innerView = viewMan->CreateView(viewBounds, outerView,                                           outerView->GetVisibility());  if (!innerView) {    NS_ERROR("Could not create inner view");    return NS_ERROR_OUT_OF_MEMORY;  }  mInnerView = innerView;  viewMan->InsertChild(outerView, innerView, nsnull, PR_TRUE);  nsWidgetInitData initData;  initData.clipChildren = PR_TRUE;  initData.clipSiblings = PR_TRUE;  return innerView->CreateWidget(kCChildCID, nsnull, nsnull, PR_TRUE, PR_TRUE,                                 aContentType);}