mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
Added crazy macros
This commit is contained in:
parent
c025d190db
commit
e6aec1bda4
@ -25,6 +25,15 @@ class nsPlaceholderFrame;
|
||||
struct nsStyleDisplay;
|
||||
struct nsStylePosition;
|
||||
|
||||
// Some macros for container classes to do sanity checking on
|
||||
// width/height/x/y values computed during reflow.
|
||||
#ifdef DEBUG
|
||||
#define CRAZY_W 500000
|
||||
#define CRAZY_H 500000
|
||||
#define CRAZY_WIDTH(_x) (((_x) < -CRAZY_W) || ((_x) > CRAZY_W))
|
||||
#define CRAZY_HEIGHT(_y) (((_y) < -CRAZY_H) || ((_y) > CRAZY_H))
|
||||
#endif
|
||||
|
||||
// Base class for html container frames that provides common
|
||||
// functionality.
|
||||
class nsHTMLContainerFrame : public nsContainerFrame {
|
||||
|
@ -25,6 +25,15 @@ class nsPlaceholderFrame;
|
||||
struct nsStyleDisplay;
|
||||
struct nsStylePosition;
|
||||
|
||||
// Some macros for container classes to do sanity checking on
|
||||
// width/height/x/y values computed during reflow.
|
||||
#ifdef DEBUG
|
||||
#define CRAZY_W 500000
|
||||
#define CRAZY_H 500000
|
||||
#define CRAZY_WIDTH(_x) (((_x) < -CRAZY_W) || ((_x) > CRAZY_W))
|
||||
#define CRAZY_HEIGHT(_y) (((_y) < -CRAZY_H) || ((_y) > CRAZY_H))
|
||||
#endif
|
||||
|
||||
// Base class for html container frames that provides common
|
||||
// functionality.
|
||||
class nsHTMLContainerFrame : public nsContainerFrame {
|
||||
|
Loading…
x
Reference in New Issue
Block a user