Reduce the number of cases that trigger noisy debug noise

git-svn-id: svn://10.0.0.236/trunk@51776 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com 1999-10-25 23:05:31 +00:00
parent dfe78df5d9
commit 60ea075c3f
2 changed files with 8 additions and 2 deletions

View File

@ -29,7 +29,10 @@ struct nsStylePosition;
// width/height/x/y values computed during reflow.
#ifdef DEBUG
#define CRAZY_W 500000
#define CRAZY_H 500000
// 100000 lines, approximately. Assumes p2t is 15 and 15 pixels per line
#define CRAZY_H 22500000
#define CRAZY_WIDTH(_x) (((_x) < -CRAZY_W) || ((_x) > CRAZY_W))
#define CRAZY_HEIGHT(_y) (((_y) < -CRAZY_H) || ((_y) > CRAZY_H))
#endif

View File

@ -29,7 +29,10 @@ struct nsStylePosition;
// width/height/x/y values computed during reflow.
#ifdef DEBUG
#define CRAZY_W 500000
#define CRAZY_H 500000
// 100000 lines, approximately. Assumes p2t is 15 and 15 pixels per line
#define CRAZY_H 22500000
#define CRAZY_WIDTH(_x) (((_x) < -CRAZY_W) || ((_x) > CRAZY_W))
#define CRAZY_HEIGHT(_y) (((_y) < -CRAZY_H) || ((_y) > CRAZY_H))
#endif