viewMan->InsertChild(parView, view, 0);
viewMan->InsertChild(parView, view, nsnull, PR_TRUE);
nsHTMLFrameInnerFrame::CreateViewAndWidget(nsIPresContext* aPresContext,                                           nsIWidget**     aWidget){  NS_ENSURE_ARG_POINTER(aPresContext);  NS_ENSURE_ARG_POINTER(aWidget);  nsCOMPtr<nsIPresShell> presShell;  aPresContext->GetShell(getter_AddRefs(presShell));  if (!presShell) return NS_ERROR_FAILURE;  float t2p;  aPresContext->GetTwipsToPixels(&t2p);  // create, init, set the parent of the view  nsIView* view;  nsresult rv = nsComponentManager::CreateInstance(kCViewCID, nsnull, NS_GET_IID(nsIView),                                        (void **)&view);  if (NS_OK != rv) {    NS_ASSERTION(0, "Could not create view for nsHTMLFrame");    return rv;  }  nsIView* parView;  nsPoint origin;  GetOffsetFromView(aPresContext, origin, &parView);    nsRect viewBounds(origin.x, origin.y, 10, 10);  nsCOMPtr<nsIViewManager> viewMan;  presShell->GetViewManager(getter_AddRefs(viewMan));    rv = view->Init(viewMan, viewBounds, parView);  viewMan->InsertChild(parView, view, 0);  nsWidgetInitData initData;  initData.clipChildren = PR_TRUE;  initData.clipSiblings = PR_TRUE;  rv = view->CreateWidget(kCChildCID, &initData);  SetView(aPresContext, view);  // if the visibility is hidden, reflect that in the view  const nsStyleVisibility* vis;  GetStyleData(eStyleStruct_Visibility, ((const nsStyleStruct *&)vis));  if (!vis->IsVisible()) {    view->SetVisibility(nsViewVisibility_kHide);  }  view->GetWidget(*aWidget);  return rv;}