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; }
aHasScrollbar = PR_FALSE; return PR_FALSE;
nsGfxScrollFrameInner::AddRemoveScrollbar(nsBoxLayoutState& aState, nsRect& aScrollAreaSize, PRBool aOnTop, PRBool aHorizontal, PRBool aAdd){  if (aHorizontal) {     if (mNeverHasHorizontalScrollbar)       return PR_FALSE;     if (aAdd)        SetScrollbarVisibility(mHScrollbarBox, aAdd);     nsSize hSize;     mHScrollbarBox->GetPrefSize(aState, hSize);     nsBox::AddMargin(mHScrollbarBox, hSize);     if (!aAdd)        SetScrollbarVisibility(mHScrollbarBox, aAdd);     PRBool hasHorizontalScrollbar;     PRBool fit = AddRemoveScrollbar(hasHorizontalScrollbar, aScrollAreaSize.y, aScrollAreaSize.height, hSize.height, aOnTop, aAdd);     mHasHorizontalScrollbar = hasHorizontalScrollbar;    // because mHasHorizontalScrollbar is a PRPackedBool     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;    // because mHasVerticalScrollbar is a PRPackedBool     if (!fit)        SetScrollbarVisibility(mVScrollbarBox, !aAdd);     return fit;  }}