PRInt32* aVelocities) {
PRInt32* aVelocities, float aT2P, float aP2T) {     aCurPos = NSTwipsToIntPixels(aCurPos, aT2P); aDstPos = NSTwipsToIntPixels(aDstPos, aT2P);
static void ComputeVelocities(PRInt32 aCurVelocity, nscoord aCurPos, nscoord aDstPos,                              PRInt32* aVelocities) {  PRInt32 i;  PRInt32 direction = (aCurPos < aDstPos ? 1 : -1);  PRInt32 absDelta = (aDstPos - aCurPos)*direction;  PRInt32 baseVelocity = absDelta/SMOOTH_SCROLL_FRAMES;  for (i = 0; i < SMOOTH_SCROLL_FRAMES; i++) {    aVelocities[i*2] = baseVelocity;  }  nscoord total = baseVelocity*SMOOTH_SCROLL_FRAMES;  for (i = 0; i < SMOOTH_SCROLL_FRAMES; i++) {    if (total < absDelta) {      aVelocities[i*2]++;      total++;    }  }  NS_ASSERTION(total == absDelta, "Invalid velocity sum");  for (i = 0; i < SMOOTH_SCROLL_FRAMES; i++) {    aVelocities[i*2] *= direction;  }}