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


git-svn-id: svn://10.0.0.236/trunk@42973 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
1999-08-10 18:13:50 +00:00
parent bfb25baf66
commit 91a52e70b6
2 changed files with 16 additions and 16 deletions

View File

@@ -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);