aHasScrollbar = PR_FALSE; return PR_FALSE;
if (!aAdd) SetScrollbarVisibility(mHScrollbarBox, aAdd);  PRBool hasHorizontalScrollbar; PRBool fit = AddRemoveScrollbar(hasHorizontalScrollbar, aScrollAreaSize.y, aScrollAreaSize.height, hSize.height, aOnTop, aAdd); mHasHorizontalScrollbar = hasHorizontalScrollbar; if (!fit) SetScrollbarVisibility(mHScrollbarBox, !aAdd);  return fit; } else { if (mNeverHasVerticalScrollbar) return PR_FALSE;  if (aAdd) SetScrollbarVisibility(mVScrollbarBox, aAdd);  nsSize vSize; mVScrollbarBox->GetPrefSize(aState, vSize);  if (!aAdd) SetScrollbarVisibility(mVScrollbarBox, aAdd);  nsBox::AddMargin(mVScrollbarBox, vSize); PRBool hasVerticalScrollbar; PRBool fit = AddRemoveScrollbar(hasVerticalScrollbar, aScrollAreaSize.x, aScrollAreaSize.width, vSize.width, aOnTop, aAdd); mHasVerticalScrollbar = hasVerticalScrollbar; if (!fit) SetScrollbarVisibility(mVScrollbarBox, !aAdd);  return fit; }
nsGfxScrollFrameInner::AddRemoveScrollbar(PRBool& aHasScrollbar, nscoord& aXY, nscoord& aSize, nscoord aSbSize, PRBool aRightOrBottom, PRBool aAdd){    nscoord size = aSize;   if (size != NS_INTRINSICSIZE) {     if (aAdd) {        size -= aSbSize;        if (!aRightOrBottom && size >= 0)          aXY += aSbSize;     } else {        size += aSbSize;        if (!aRightOrBottom)          aXY -= aSbSize;     }   }   // not enough room? Yes? Return true.   if (size >= aSbSize) {       aHasScrollbar = aAdd;       aSize = size;       return PR_TRUE;   }   aHasScrollbar = PR_FALSE;   return PR_FALSE;}