if (newVis != oldVis) view->SetVisibility(newVis);
if (newVis != oldVis) { nsCOMPtr<nsIViewManager> vm; view->GetViewManager(*getter_AddRefs(vm)); if (vm != nsnull) { vm->SetViewVisibility(view, newVis); } }
nsHTMLFrameInnerFrame::DidReflow(nsIPresContext* aPresContext,                        nsDidReflowStatus aStatus){  nsresult rv = nsLeafFrame::DidReflow(aPresContext, aStatus);  // The view is created hidden; once we have reflowed it and it has been  // positioned then we show it.  if (NS_FRAME_REFLOW_FINISHED == aStatus) {    nsIView* view = nsnull;    GetView(aPresContext, &view);    if (view) {      const nsStyleVisibility* vis;      GetStyleData(eStyleStruct_Visibility, ((const nsStyleStruct *&)vis));      nsViewVisibility newVis = vis->IsVisible() ? nsViewVisibility_kShow : nsViewVisibility_kHide;      nsViewVisibility oldVis;      // only change if different.      view->GetVisibility(oldVis);      if (newVis != oldVis)         view->SetVisibility(newVis);    }  }    return rv;}