PRUint8      ownerSide = 0; PRPackedBool bevel     = PR_FALSE; PRInt32      xAdj      = aIter.x - aIter.startX;  nscoord cornerSubWidth  = (aIter.bcData) ? aIter.bcData->GetCorner(ownerSide, bevel) : 0; PRBool  topBevel        = (aVerSegWidth > 0) ? bevel : PR_FALSE; nscoord maxHorSegHeight = PR_MAX(aPrevHorSegHeight, aHorSegHeight); nscoord offset          = CalcVerCornerOffset(ownerSide, cornerSubWidth, maxHorSegHeight, PR_TRUE, topBevel, aPixelsToTwips);  bevelOffset = (topBevel) ? maxHorSegHeight : 0; bevelSide   = (aHorSegHeight > 0) ? NS_SIDE_RIGHT : NS_SIDE_LEFT; segY       += offset; segHeight   = -offset; segWidth    = aVerSegWidth; owner       = aBorderOwner; firstCell   = aIter.cell; if (xAdj > 0) { ajaCell = aVerInfoArray[xAdj - 1].lastCell; }
owner = aBorderOwner; leftBevel = (aHorSegHeight > 0) ? aBevel : PR_FALSE; nscoord maxVerSegWidth = PR_MAX(aTopVerSegWidth, aBottomVerSegWidth); nscoord offset = CalcHorCornerOffset(aCornerOwnerSide, aSubWidth, maxVerSegWidth, PR_TRUE, leftBevel, aPixelsToTwips); leftBevelOffset = (leftBevel && (aHorSegHeight > 0)) ? maxVerSegWidth : 0; leftBevelSide   = (aBottomVerSegWidth > 0) ? NS_SIDE_BOTTOM : NS_SIDE_TOP; x              += offset; width           = -offset; height          = aHorSegHeight; firstCell       = aIter.cell; ajaCell         = (aIter.IsTopMost()) ? nsnull : aLastCell;
BCVerticalSeg::Start(BCMapBorderIterator& aIter,                     BCBorderOwner        aBorderOwner,                     nscoord              aVerSegWidth,                     nscoord              aPrevHorSegHeight,                     nscoord              aHorSegHeight,                     float                aPixelsToTwips,                     BCVerticalSeg*       aVerInfoArray){  PRUint8      ownerSide = 0;  PRPackedBool bevel     = PR_FALSE;  PRInt32      xAdj      = aIter.x - aIter.startX;  nscoord cornerSubWidth  = (aIter.bcData) ? aIter.bcData->GetCorner(ownerSide, bevel) : 0;  PRBool  topBevel        = (aVerSegWidth > 0) ? bevel : PR_FALSE;  nscoord maxHorSegHeight = PR_MAX(aPrevHorSegHeight, aHorSegHeight);  nscoord offset          = CalcVerCornerOffset(ownerSide, cornerSubWidth, maxHorSegHeight,                                                 PR_TRUE, topBevel, aPixelsToTwips);  bevelOffset = (topBevel) ? maxHorSegHeight : 0;  bevelSide   = (aHorSegHeight > 0) ? NS_SIDE_RIGHT : NS_SIDE_LEFT;  segY       += offset;  segHeight   = -offset;  segWidth    = aVerSegWidth;  owner       = aBorderOwner;  firstCell   = aIter.cell;  if (xAdj > 0) {    ajaCell = aVerInfoArray[xAdj - 1].lastCell;  }}