if ((mMargin == aOther.mMargin) && (mPadding == aOther.mPadding) && (mBorder == aOther.mBorder)) { PRInt32 index; for (index = 0; index < 4; index++) { if ((mBorderStyle[index] != aOther.mBorderStyle[index]) || (mBorderColor[index] != aOther.mBorderColor[index])) { if ((NS_STYLE_BORDER_STYLE_NONE == mBorderStyle[index]) || (NS_STYLE_BORDER_STYLE_NONE == aOther.mBorderStyle[index])) { return NS_STYLE_HINT_REFLOW; } return NS_STYLE_HINT_VISUAL; } }
if (mFont.Equals(aOther.mFont) && mFixedFont.Equals(aOther.mFixedFont) && (mFlags == aOther.mFlags)) {
PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const{  if ((mMargin == aOther.mMargin) &&       (mPadding == aOther.mPadding) &&       (mBorder == aOther.mBorder)) {    PRInt32 index;    for (index = 0; index < 4; index++) {      if ((mBorderStyle[index] != aOther.mBorderStyle[index]) ||           (mBorderColor[index] != aOther.mBorderColor[index])) {        if ((NS_STYLE_BORDER_STYLE_NONE == mBorderStyle[index]) ||          (NS_STYLE_BORDER_STYLE_NONE == aOther.mBorderStyle[index])) {          return NS_STYLE_HINT_REFLOW;  // border on or off        }        return NS_STYLE_HINT_VISUAL;      }    }    return NS_STYLE_HINT_NONE;  }  return NS_STYLE_HINT_REFLOW;}