if (NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_BOTTOM)) {
if (!IsBorderSideVisible(NS_SIDE_BOTTOM)) {
void StyleSpacingImpl::RecalcData(nsIPresContext* aPresContext, nscolor aColor){  nscoord borderWidths[3];  float pixelsToTwips = 20.0f;  if (aPresContext) {    aPresContext->GetPixelsToTwips(&pixelsToTwips);  }  borderWidths[NS_STYLE_BORDER_WIDTH_THIN] = NSIntPixelsToTwips(1, pixelsToTwips);  borderWidths[NS_STYLE_BORDER_WIDTH_MEDIUM] = NSIntPixelsToTwips(3, pixelsToTwips);  borderWidths[NS_STYLE_BORDER_WIDTH_THICK] = NSIntPixelsToTwips(5, pixelsToTwips);  if (IsFixedData(mMargin, PR_FALSE)) {    nsStyleCoord  coord;    mCachedMargin.left = CalcCoord(mMargin.GetLeft(coord), nsnull, 0);    mCachedMargin.top = CalcCoord(mMargin.GetTop(coord), nsnull, 0);    mCachedMargin.right = CalcCoord(mMargin.GetRight(coord), nsnull, 0);    mCachedMargin.bottom = CalcCoord(mMargin.GetBottom(coord), nsnull, 0);    mHasCachedMargin = PR_TRUE;  }  else {    mHasCachedMargin = PR_FALSE;  }  if (IsFixedData(mPadding, PR_FALSE)) {    nsStyleCoord  coord;    mCachedPadding.left = CalcCoord(mPadding.GetLeft(coord), nsnull, 0);    mCachedPadding.top = CalcCoord(mPadding.GetTop(coord), nsnull, 0);    mCachedPadding.right = CalcCoord(mPadding.GetRight(coord), nsnull, 0);    mCachedPadding.bottom = CalcCoord(mPadding.GetBottom(coord), nsnull, 0);    mHasCachedPadding = PR_TRUE;  }  else {    mHasCachedPadding = PR_FALSE;  }  if (((NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_LEFT))||        IsFixedUnit(mBorder.GetLeftUnit(), PR_TRUE)) &&      ((NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_TOP)) ||        IsFixedUnit(mBorder.GetTopUnit(), PR_TRUE)) &&      ((NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_RIGHT)) ||        IsFixedUnit(mBorder.GetRightUnit(), PR_TRUE)) &&      ((NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_BOTTOM)) ||        IsFixedUnit(mBorder.GetBottomUnit(), PR_TRUE))) {    nsStyleCoord  coord;    if (NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_LEFT)) {      mCachedBorder.left = 0;    }    else {      mCachedBorder.left = CalcCoord(mBorder.GetLeft(coord), borderWidths, 3);    }    if (NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_TOP)) {      mCachedBorder.top = 0;    }    else {      mCachedBorder.top = CalcCoord(mBorder.GetTop(coord), borderWidths, 3);    }    if (NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_RIGHT)) {      mCachedBorder.right = 0;    }    else {      mCachedBorder.right = CalcCoord(mBorder.GetRight(coord), borderWidths, 3);    }    if (NS_STYLE_BORDER_STYLE_NONE == GetBorderStyle(NS_SIDE_BOTTOM)) {      mCachedBorder.bottom = 0;    }    else {      mCachedBorder.bottom = CalcCoord(mBorder.GetBottom(coord), borderWidths, 3);    }    mHasCachedBorder = PR_TRUE;  }  else {    mHasCachedBorder = PR_FALSE;  }  if (mHasCachedBorder && mHasCachedPadding) {    mCachedBorderPadding = mCachedPadding;    mCachedBorderPadding += mCachedBorder;  }    if ((mBorderStyle[NS_SIDE_TOP] & BORDER_COLOR_DEFINED) == 0) {    mBorderColor[NS_SIDE_TOP] = aColor;  }  if ((mBorderStyle[NS_SIDE_BOTTOM] & BORDER_COLOR_DEFINED) == 0) {    mBorderColor[NS_SIDE_BOTTOM] = aColor;  }  if ((mBorderStyle[NS_SIDE_LEFT]& BORDER_COLOR_DEFINED) == 0) {    mBorderColor[NS_SIDE_LEFT] = aColor;  }  if ((mBorderStyle[NS_SIDE_RIGHT] & BORDER_COLOR_DEFINED) == 0) {    mBorderColor[NS_SIDE_RIGHT] = aColor;  }  if ((NS_STYLE_BORDER_STYLE_NONE == GetOutlineStyle()) ||       IsFixedUnit(mOutlineWidth.GetUnit(), PR_TRUE)) {    if (NS_STYLE_BORDER_STYLE_NONE == GetOutlineStyle()) {      mCachedOutlineWidth = 0;    }    else {      mCachedOutlineWidth = CalcCoord(mOutlineWidth, borderWidths, 3);    }    mHasCachedOutline = PR_TRUE;  }  else {    mHasCachedOutline = PR_FALSE;  }}