mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
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:
parent
579e2f7d7a
commit
a0b2d8a8ce
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user