DivideBCBorderSize(aCornerSubWidth, smallHalf, largeHalf);
if (aTableIsLTR) { DivideBCBorderSize(aCornerSubWidth, smallHalf, largeHalf); } else { DivideBCBorderSize(aCornerSubWidth, largeHalf, smallHalf); }
CalcHorCornerOffset(PRUint8 aCornerOwnerSide,                    nscoord aCornerSubWidth,                    nscoord aVerWidth,                    PRBool  aIsStartOfSeg,                    PRBool  aIsBevel,                    float   aPixelsToTwips){  nscoord offset = 0;  nscoord smallHalf, largeHalf;  if ((NS_SIDE_LEFT == aCornerOwnerSide) || (NS_SIDE_RIGHT == aCornerOwnerSide)) {    DivideBCBorderSize(aCornerSubWidth, smallHalf, largeHalf);    if (aIsBevel) {      offset = (aIsStartOfSeg) ? -largeHalf : smallHalf;    }    else {      offset = (NS_SIDE_LEFT == aCornerOwnerSide) ? smallHalf : -largeHalf;    }  }  else {    DivideBCBorderSize(aVerWidth, smallHalf, largeHalf);    if (aIsBevel) {      offset = (aIsStartOfSeg) ? -largeHalf : smallHalf;    }    else {      offset = (aIsStartOfSeg) ? smallHalf : -largeHalf;    }  }  return NSToCoordRound(aPixelsToTwips * (float)offset);}