зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
4bc697d93c
Коммит
1c616a0c92
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче