fixed change hint for border style

This commit is contained in:
peterl%netscape.com 1999-05-18 23:03:29 +00:00
Родитель bfcbb2a606
Коммит d393ad5352
3 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -650,6 +650,10 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
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;
}
}

Просмотреть файл

@ -650,6 +650,10 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
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;
}
}

Просмотреть файл

@ -650,6 +650,10 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
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;
}
}