view->SetContentTransparency(PR_TRUE); viewMan->InsertChild(parView, view, 0);
viewMan->SetViewContentTransparency(view, PR_TRUE);  viewMan->InsertChild(parView, view, nsnull, PR_TRUE);
nsImageControlFrame::Init(nsIPresContext*  aPresContext,                          nsIContent*      aContent,                          nsIFrame*        aParent,                          nsIStyleContext* aContext,                          nsIFrame*        aPrevInFlow){  // call our base class  nsresult  rv = nsImageControlFrameSuper::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, NS_GET_IID(nsIView), (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);    const nsStyleVisibility* vis = (const nsStyleVisibility*) mStyleContext->GetStyleData(eStyleStruct_Visibility);    // set the opacity    viewMan->SetViewOpacity(view, vis->mOpacity);  }  return rv;}