Make sure to init the border color for the fake border we paint. Bug 292662,

r+sr=dbaron, a=asa
This commit is contained in:
bzbarsky%mit.edu 2005-05-05 16:03:06 +00:00
parent 579e2f7d7a
commit a0b2d8a8ce

View File

@ -1168,9 +1168,13 @@ struct nsRecessedBorder : public nsStyleBorder {
nsRecessedBorder(nscoord aBorderWidth)
: nsStyleBorder()
{
// Note: use SetBorderStyle here because we want to affect mComputedBorder
NS_FOR_CSS_SIDES(side) {
// Note: use SetBorderColor here because we want to make sure
// the "special" flags are unset.
SetBorderColor(side, NS_RGB(0, 0, 0));
mBorder.side(side) = aBorderWidth;
// Note: use SetBorderStyle here because we want to affect
// mComputedBorder
SetBorderStyle(side, NS_STYLE_BORDER_STYLE_INSET);
}
}