nsresult rv = nsComponentManager::CreateInstance(kCViewCID, nsnull, NS_GET_IID(nsIView), (void **)&innerView);
nsresult rv = CallCreateInstance(kCViewCID, &innerView);
nsSubDocumentFrame::CreateViewAndWidget(nsContentType aContentType){  // create, init, set the parent of the view  nsIView* innerView;  nsresult rv = nsComponentManager::CreateInstance(kCViewCID, nsnull,                                                   NS_GET_IID(nsIView),                                                   (void **)&innerView);  if (NS_FAILED(rv)) {    NS_ERROR("Could not create inner view");    return rv;  }  mInnerView = innerView;  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)  rv = innerView->Init(viewMan, viewBounds, outerView,                       outerView->GetVisibility());  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);}