nsGfxScrollFrameInner::AddRemoveScrollbar(PRBool& aHasScrollbar, nscoord& aXY, nscoord& aSize, nscoord aSbSize, PRBool aRightOrBottom, PRBool aAdd) { nscoord size = aSize;
nsGfxScrollFrameInner::AddRemoveScrollbar(nsBoxLayoutState& aState, nsRect& aScrollAreaSize, PRBool aOnTop, PRBool aHorizontal, PRBool aAdd) { if (aHorizontal) { if (mNeverHasHorizontalScrollbar) return PR_FALSE;
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;}