nsresult result = nsComponentManager::CreateInstance(kViewCID, nsnull, kIViewIID,
nsresult result = nsComponentManager::CreateInstance(kViewCID, nsnull, NS_GET_IID(nsIView),
nsLabelFrame::Init(nsIPresContext*  aPresContext,                   nsIContent*      aContent,                   nsIFrame*        aParent,                   nsIStyleContext* aContext,                   nsIFrame*        aPrevInFlow){  // call our base class  nsresult  rv = nsHTMLContainerFrame::Init(aPresContext, aContent, aParent,                                            aContext, aPrevInFlow);  // create our view, we need a view to grab the mouse   nsIView* view;  GetView(aPresContext, &view);  if (!view) {    nsresult result = nsComponentManager::CreateInstance(kViewCID, nsnull, kIViewIID,                                                  (void **)&view);    nsCOMPtr<nsIPresShell> presShell;    aPresContext->GetShell(getter_AddRefs(presShell));    nsCOMPtr<nsIViewManager> viewMan;    presShell->GetViewManager(getter_AddRefs(viewMan));    nsIFrame* parWithView;    nsIView *parView;    GetParentWithView(aPresContext, &parWithView);    parWithView->GetView(aPresContext, &parView);    // the view's size is not know yet, but its size will be kept in synch with our frame.    nsRect boundBox(0, 0, 0, 0);     result = view->Init(viewMan, boundBox, parView);    view->SetContentTransparency(PR_TRUE);    viewMan->InsertChild(parView, view, 0);    SetView(aPresContext, view);  }  return rv;}