DrawDashedSides now used the correct height and width for the right and bottom

git-svn-id: svn://10.0.0.236/trunk@53512 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dcone%netscape.com
1999-11-15 15:33:25 +00:00
parent 86e9616018
commit d93bf4b996
2 changed files with 22 additions and 4 deletions

View File

@@ -809,7 +809,11 @@ PRBool skippedSide = PR_FALSE;
bSolid = PR_FALSE;
// This is our dot or dash..
dashRect.width = borderInside.x - borderOutside.x;
if(whichSide==NS_SIDE_LEFT){
dashRect.width = borderInside.x - borderOutside.x;
} else {
dashRect.width = borderOutside.XMost() - borderInside.XMost();
}
if( dashRect.width >0 ) {
dashRect.height = dashRect.width * dashLength;
dashRect.y = borderOutside.y;
@@ -870,7 +874,12 @@ PRBool skippedSide = PR_FALSE;
bSolid = PR_FALSE;
// This is our dot or dash..
dashRect.height = borderInside.y - borderOutside.y;
if(whichSide==NS_SIDE_TOP){
dashRect.height = borderInside.y - borderOutside.y;
} else {
dashRect.height = borderOutside.YMost() - borderInside.YMost();
}
if( dashRect.height >0 ) {
dashRect.width = dashRect.height * dashLength;
dashRect.x = borderOutside.x;