Changing the order in which borders are painted for compatibility.

Used to be TOP,LEFT,BOTTOM,RIGHT, and now it's
BOTTOM,LEFT,TOP,RIGHT.  Fix for bug#11022
This commit is contained in:
harishd%netscape.com 1999-08-10 18:13:50 +00:00
Родитель 38a72c5fc1
Коммит 9db5447de6
2 изменённых файлов: 16 добавлений и 16 удалений

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

@ -1423,10 +1423,10 @@ void nsCSSRendering::PaintBorder(nsIPresContext& aPresContext,
twipsPerPixel = (nscoord) p2t;/* XXX */
nscolor sideColor;
if (0 == (aSkipSides & (1<<NS_SIDE_TOP))) {
if (aBorderStyle.GetBorderColor(NS_SIDE_TOP, sideColor)) {
DrawSide(aRenderingContext, NS_SIDE_TOP,
aBorderStyle.GetBorderStyle(NS_SIDE_TOP),
if (0 == (aSkipSides & (1<<NS_SIDE_BOTTOM))) {
if (aBorderStyle.GetBorderColor(NS_SIDE_BOTTOM, sideColor)) {
DrawSide(aRenderingContext, NS_SIDE_BOTTOM,
aBorderStyle.GetBorderStyle(NS_SIDE_BOTTOM),
sideColor,
bgColor->mBackgroundColor, inside,outside, aSkipSides,
twipsPerPixel, aGap);
@ -1441,10 +1441,10 @@ void nsCSSRendering::PaintBorder(nsIPresContext& aPresContext,
twipsPerPixel, aGap);
}
}
if (0 == (aSkipSides & (1<<NS_SIDE_BOTTOM))) {
if (aBorderStyle.GetBorderColor(NS_SIDE_BOTTOM, sideColor)) {
DrawSide(aRenderingContext, NS_SIDE_BOTTOM,
aBorderStyle.GetBorderStyle(NS_SIDE_BOTTOM),
if (0 == (aSkipSides & (1<<NS_SIDE_TOP))) {
if (aBorderStyle.GetBorderColor(NS_SIDE_TOP, sideColor)) {
DrawSide(aRenderingContext, NS_SIDE_TOP,
aBorderStyle.GetBorderStyle(NS_SIDE_TOP),
sideColor,
bgColor->mBackgroundColor,inside, outside,aSkipSides,
twipsPerPixel, aGap);

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

@ -1423,10 +1423,10 @@ void nsCSSRendering::PaintBorder(nsIPresContext& aPresContext,
twipsPerPixel = (nscoord) p2t;/* XXX */
nscolor sideColor;
if (0 == (aSkipSides & (1<<NS_SIDE_TOP))) {
if (aBorderStyle.GetBorderColor(NS_SIDE_TOP, sideColor)) {
DrawSide(aRenderingContext, NS_SIDE_TOP,
aBorderStyle.GetBorderStyle(NS_SIDE_TOP),
if (0 == (aSkipSides & (1<<NS_SIDE_BOTTOM))) {
if (aBorderStyle.GetBorderColor(NS_SIDE_BOTTOM, sideColor)) {
DrawSide(aRenderingContext, NS_SIDE_BOTTOM,
aBorderStyle.GetBorderStyle(NS_SIDE_BOTTOM),
sideColor,
bgColor->mBackgroundColor, inside,outside, aSkipSides,
twipsPerPixel, aGap);
@ -1441,10 +1441,10 @@ void nsCSSRendering::PaintBorder(nsIPresContext& aPresContext,
twipsPerPixel, aGap);
}
}
if (0 == (aSkipSides & (1<<NS_SIDE_BOTTOM))) {
if (aBorderStyle.GetBorderColor(NS_SIDE_BOTTOM, sideColor)) {
DrawSide(aRenderingContext, NS_SIDE_BOTTOM,
aBorderStyle.GetBorderStyle(NS_SIDE_BOTTOM),
if (0 == (aSkipSides & (1<<NS_SIDE_TOP))) {
if (aBorderStyle.GetBorderColor(NS_SIDE_TOP, sideColor)) {
DrawSide(aRenderingContext, NS_SIDE_TOP,
aBorderStyle.GetBorderStyle(NS_SIDE_TOP),
sideColor,
bgColor->mBackgroundColor,inside, outside,aSkipSides,
twipsPerPixel, aGap);