9809 "Dynamic changes of outline properties aren't repainted". Generate a reflow when the outline changes.

This commit is contained in:
pierre%netscape.com 2000-01-24 08:16:54 +00:00
Родитель 22a5959edb
Коммит 6962364ebd
3 изменённых файлов: 15 добавлений и 9 удалений

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

@ -757,11 +757,13 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
return NS_STYLE_HINT_VISUAL;
}
}
if (mBorderRadius != aOther.mBorderRadius) {
return NS_STYLE_HINT_VISUAL;
}
if ((mOutlineWidth != aOther.mOutlineWidth) ||
(mOutlineStyle != aOther.mOutlineStyle) ||
(mOutlineColor != aOther.mOutlineColor) ||
(mBorderRadius != aOther.mBorderRadius)) {
return NS_STYLE_HINT_VISUAL;
(mOutlineColor != aOther.mOutlineColor)) {
return NS_STYLE_HINT_REFLOW; // XXX: should be VISUAL: see bugs 9809 and 9816
}
return NS_STYLE_HINT_NONE;
}

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

@ -757,11 +757,13 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
return NS_STYLE_HINT_VISUAL;
}
}
if (mBorderRadius != aOther.mBorderRadius) {
return NS_STYLE_HINT_VISUAL;
}
if ((mOutlineWidth != aOther.mOutlineWidth) ||
(mOutlineStyle != aOther.mOutlineStyle) ||
(mOutlineColor != aOther.mOutlineColor) ||
(mBorderRadius != aOther.mBorderRadius)) {
return NS_STYLE_HINT_VISUAL;
(mOutlineColor != aOther.mOutlineColor)) {
return NS_STYLE_HINT_REFLOW; // XXX: should be VISUAL: see bugs 9809 and 9816
}
return NS_STYLE_HINT_NONE;
}

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

@ -757,11 +757,13 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
return NS_STYLE_HINT_VISUAL;
}
}
if (mBorderRadius != aOther.mBorderRadius) {
return NS_STYLE_HINT_VISUAL;
}
if ((mOutlineWidth != aOther.mOutlineWidth) ||
(mOutlineStyle != aOther.mOutlineStyle) ||
(mOutlineColor != aOther.mOutlineColor) ||
(mBorderRadius != aOther.mBorderRadius)) {
return NS_STYLE_HINT_VISUAL;
(mOutlineColor != aOther.mOutlineColor)) {
return NS_STYLE_HINT_REFLOW; // XXX: should be VISUAL: see bugs 9809 and 9816
}
return NS_STYLE_HINT_NONE;
}