nscoord aFrameSize)
nscoord aFrameSize, float   aPixelToTwips)
nscoord CalcAutoMargin(nscoord aAutoMargin,                       nscoord aOppositeMargin,                       nscoord aContainBlockSize,                       nscoord aFrameSize){  nscoord margin;  if (NS_AUTOMARGIN == aOppositeMargin) {    margin = (aContainBlockSize - aFrameSize) / 2;  }  else {    margin = aContainBlockSize - aFrameSize - aOppositeMargin;  }  return PR_MAX(0, margin);}