bug 183274 - bernd's patch to fix some typos and wrong max value. sr=bzbarsky, r=karnaze

This commit is contained in:
karnaze%netscape.com 2002-12-03 20:20:53 +00:00
parent 229d7e68c8
commit 371ffa7c11
2 changed files with 6 additions and 6 deletions

View File

@ -4655,8 +4655,8 @@ CheckFixDamageArea(PRInt32 aNumRows,
PRInt32 aNumCols,
nsRect& aDamageArea)
{
if (((aDamageArea.XMost() > aNumCols) && (aDamageArea.width != 1) & (aNumCols != 0)) ||
((aDamageArea.YMost() > aNumRows) && (aDamageArea.height != 1) & (aNumRows != 0))) {
if (((aDamageArea.XMost() > aNumCols) && (aDamageArea.width != 1) && (aNumCols != 0)) ||
((aDamageArea.YMost() > aNumRows) && (aDamageArea.height != 1) && (aNumRows != 0))) {
// the damage area was set incorrectly, just be safe and make it the entire table
NS_ASSERTION(PR_FALSE, "invalid BC damage area");
aDamageArea.x = 0;
@ -5710,7 +5710,7 @@ nsTableFrame::ExpandBCDamageArea(nsRect& aRect) const
}
}
#define MAX_TABLE_BORDER_WIDTH 256
#define MAX_TABLE_BORDER_WIDTH 255
static PRUint8
LimitBorderWidth(PRUint16 aWidth)
{

View File

@ -4655,8 +4655,8 @@ CheckFixDamageArea(PRInt32 aNumRows,
PRInt32 aNumCols,
nsRect& aDamageArea)
{
if (((aDamageArea.XMost() > aNumCols) && (aDamageArea.width != 1) & (aNumCols != 0)) ||
((aDamageArea.YMost() > aNumRows) && (aDamageArea.height != 1) & (aNumRows != 0))) {
if (((aDamageArea.XMost() > aNumCols) && (aDamageArea.width != 1) && (aNumCols != 0)) ||
((aDamageArea.YMost() > aNumRows) && (aDamageArea.height != 1) && (aNumRows != 0))) {
// the damage area was set incorrectly, just be safe and make it the entire table
NS_ASSERTION(PR_FALSE, "invalid BC damage area");
aDamageArea.x = 0;
@ -5710,7 +5710,7 @@ nsTableFrame::ExpandBCDamageArea(nsRect& aRect) const
}
}
#define MAX_TABLE_BORDER_WIDTH 256
#define MAX_TABLE_BORDER_WIDTH 255
static PRUint8
LimitBorderWidth(PRUint16 aWidth)
{