Fixed a problem with thick left border edges being the wrong thickness

git-svn-id: svn://10.0.0.236/trunk@4057 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy
1998-06-18 05:43:32 +00:00
parent 4e53dbf190
commit e4e28bc903
4 changed files with 10 additions and 10 deletions

View File

@@ -287,7 +287,7 @@ nscolor nsCSSRendering::MakeBevelColor(PRIntn whichSide, PRUint8 style,
PRIntn nsCSSRendering::MakeSide(nsPoint aPoints[],
nsIRenderingContext& aContext,
PRIntn whichSide,
const nsRect& inside, const nsRect& outside,
const nsRect& outside, const nsRect& inside,
PRIntn borderPart, float borderFrac,
nscoord twipsPerPixel)
{
@@ -306,7 +306,7 @@ PRIntn nsCSSRendering::MakeSide(nsPoint aPoints[],
switch (whichSide) {
case NS_SIDE_TOP:
if (borderPart == BORDER_FULL) {
thickness = outside.y - inside.y;
thickness = inside.y - outside.y;
aPoints[np++].MoveTo(outside.XMost(), outside.y);
if (thickness >= twipsPerPixel) {
@@ -376,7 +376,7 @@ PRIntn nsCSSRendering::MakeSide(nsPoint aPoints[],
case NS_SIDE_BOTTOM:
if (borderPart == BORDER_FULL) {
thickness = outside.y - inside.y;
thickness = outside.YMost() - inside.YMost();
aPoints[np++].MoveTo(outside.x, outside.YMost());
if (thickness >= twipsPerPixel) {
@@ -411,7 +411,7 @@ PRIntn nsCSSRendering::MakeSide(nsPoint aPoints[],
case NS_SIDE_RIGHT:
if (borderPart == BORDER_FULL) {
thickness = outside.x - inside.x;
thickness = outside.XMost() - inside.XMost();
aPoints[np++].MoveTo(outside.XMost(), outside.YMost());
aPoints[np++].MoveTo(outside.XMost(), outside.y);

View File

@@ -81,7 +81,7 @@ protected:
static PRIntn MakeSide(nsPoint aPoints[],
nsIRenderingContext& aContext,
PRIntn whichSide,
const nsRect& inside, const nsRect& outside,
const nsRect& outside, const nsRect& inside,
PRIntn borderPart, float borderFrac,
nscoord twipsPerPixel);

View File

@@ -287,7 +287,7 @@ nscolor nsCSSRendering::MakeBevelColor(PRIntn whichSide, PRUint8 style,
PRIntn nsCSSRendering::MakeSide(nsPoint aPoints[],
nsIRenderingContext& aContext,
PRIntn whichSide,
const nsRect& inside, const nsRect& outside,
const nsRect& outside, const nsRect& inside,
PRIntn borderPart, float borderFrac,
nscoord twipsPerPixel)
{
@@ -306,7 +306,7 @@ PRIntn nsCSSRendering::MakeSide(nsPoint aPoints[],
switch (whichSide) {
case NS_SIDE_TOP:
if (borderPart == BORDER_FULL) {
thickness = outside.y - inside.y;
thickness = inside.y - outside.y;
aPoints[np++].MoveTo(outside.XMost(), outside.y);
if (thickness >= twipsPerPixel) {
@@ -376,7 +376,7 @@ PRIntn nsCSSRendering::MakeSide(nsPoint aPoints[],
case NS_SIDE_BOTTOM:
if (borderPart == BORDER_FULL) {
thickness = outside.y - inside.y;
thickness = outside.YMost() - inside.YMost();
aPoints[np++].MoveTo(outside.x, outside.YMost());
if (thickness >= twipsPerPixel) {
@@ -411,7 +411,7 @@ PRIntn nsCSSRendering::MakeSide(nsPoint aPoints[],
case NS_SIDE_RIGHT:
if (borderPart == BORDER_FULL) {
thickness = outside.x - inside.x;
thickness = outside.XMost() - inside.XMost();
aPoints[np++].MoveTo(outside.XMost(), outside.YMost());
aPoints[np++].MoveTo(outside.XMost(), outside.y);

View File

@@ -81,7 +81,7 @@ protected:
static PRIntn MakeSide(nsPoint aPoints[],
nsIRenderingContext& aContext,
PRIntn whichSide,
const nsRect& inside, const nsRect& outside,
const nsRect& outside, const nsRect& inside,
PRIntn borderPart, float borderFrac,
nscoord twipsPerPixel);