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;
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; firstRowGroup = aIter.rg; firstRow      = aIter.row; if (xAdj > 0) { ajaCell = aVerInfoArray[xAdj - 1].lastCell; }
BCHorizontalSeg::Start(BCMapBorderIterator& aIter,                       BCBorderOwner        aBorderOwner,                       PRUint8              aCornerOwnerSide,                       nscoord              aSubWidth,                       PRBool               aBevel,                       nscoord              aTopVerSegWidth,                       nscoord              aBottomVerSegWidth,                       nscoord              aHorSegHeight,                       nsTableCellFrame*    aLastCell,                       float                aPixelsToTwips){  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; }