mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
bug 183274 - bernd's patch to fix some typos and wrong max value. sr=bzbarsky, r=karnaze
This commit is contained in:
parent
229d7e68c8
commit
371ffa7c11
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user