nscoord vbarwidth, hbarheight; scrollFrame->GetScrollbarSizes(aBoxLayoutState.GetPresContext(), &vbarwidth, &hbarheight); aSize.width += vbarwidth;
nsMargin scrollbars = scrollFrame->GetDesiredScrollbarSizes(&aBoxLayoutState); aSize.width += scrollbars.left + scrollbars.right;
nsListboxScrollPortFrame::GetMinSize(nsBoxLayoutState& aBoxLayoutState, nsSize& aSize){    nsIBox* child = nsnull;  GetChildBox(&child);   nsresult rv = child->GetPrefSize(aBoxLayoutState, aSize);  nsListBoxBodyFrame* outer = NS_STATIC_CAST(nsListBoxBodyFrame*,child);  nsAutoString sizeMode;  outer->GetContent()->GetAttr(kNameSpaceID_None, nsXULAtoms::sizemode, sizeMode);  if (!sizeMode.IsEmpty()) {      nsCOMPtr<nsIScrollableFrame> scrollFrame(do_QueryInterface(mParent));    if (scrollFrame) {      nsIScrollableFrame::nsScrollPref scrollPref;      scrollFrame->GetScrollPreference(aBoxLayoutState.GetPresContext(), &scrollPref);      if (scrollPref == nsIScrollableFrame::Auto) {        nscoord vbarwidth, hbarheight;        scrollFrame->GetScrollbarSizes(aBoxLayoutState.GetPresContext(),                                       &vbarwidth, &hbarheight);        aSize.width += vbarwidth;      }    }  }  else aSize.width = 0;  aSize.height = 0;    AddMargin(child, aSize);  AddBorderAndPadding(aSize);  AddInset(aSize);  nsIBox::AddCSSMinSize(aBoxLayoutState, this, aSize);  return rv;}