nsSplitterFrameImpl::AddRemoveSpace(nscoord aDiff,
nsSplitterFrameInner::AddRemoveSpace(nscoord aDiff,
nsSplitterFrameImpl::AddRemoveSpace(nscoord aDiff,                                    nsSplitterInfo* aChildInfos,                                    PRInt32 aCount,                                    PRInt32& aSpaceLeft){  aSpaceLeft = 0;  for (int i=0; i < aCount; i++) {       nscoord min    = aChildInfos[i].min;    nscoord max    = aChildInfos[i].max;    nscoord& c     = aChildInfos[i].changed;    // figure our how much space to add or remove    if (c + aDiff < min) {     aDiff += (c - min);     c = min;    } else if (c + aDiff > max) {     aDiff -= (max - c);     c = max;    } else {     c += aDiff;     aDiff = 0;    }    // there is not space left? We are done    if (aDiff == 0)       break;  }  aSpaceLeft = aDiff;}