nsBoxFrameImpl::CollapseChild(nsIFrame* frame)
nsBoxFrameInner::CollapseChild(nsIFrame* frame)
nsBoxFrameImpl::CollapseChild(nsIFrame* frame){    nsRect rect(0,0,0,0);    frame->GetRect(rect);    if (rect.width > 0 || rect.height > 0) {      // shrink the frame      frame->SizeTo(0,0);      // shrink the view      nsIView* view = nsnull;      frame->GetView(&view);      // if we find a view stop right here. All views under it      // will be clipped.      if (view) {        view->SetDimensions(0,0,PR_FALSE);        return;      }          // collapse the child      nsIFrame* child = nsnull;      frame->FirstChild(nsnull, &child);      while (nsnull != child)       {         CollapseChild(child);         nsresult rv = child->GetNextSibling(&child);         NS_ASSERTION(rv == NS_OK,"failed to get next child");      }    }}