summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-02-11 17:15:36 +0000
committerJames Bursa <james@netsurf-browser.org>2004-02-11 17:15:36 +0000
commit9aabe954c0914a998ae1ad0069e0d2ddbea4bf57 (patch)
treeb2d64031dd6b6bd8f3abac09579a3ec8d45f3e0a /render/box.h
parentd642474df13a68c69623a81e434e86d07968a879 (diff)
downloadnetsurf-9aabe954c0914a998ae1ad0069e0d2ddbea4bf57.tar.gz
netsurf-9aabe954c0914a998ae1ad0069e0d2ddbea4bf57.tar.bz2
[project @ 2004-02-11 17:15:36 by bursa]
Work on margins etc., clean up many parts of layout code. svn path=/import/netsurf/; revision=534
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/render/box.h b/render/box.h
index f711a0f79..713baafdd 100644
--- a/render/box.h
+++ b/render/box.h
@@ -32,7 +32,7 @@ typedef enum {
struct column {
enum { COLUMN_WIDTH_UNKNOWN = 0, COLUMN_WIDTH_FIXED,
COLUMN_WIDTH_AUTO, COLUMN_WIDTH_PERCENT } type;
- unsigned long min, max, width;
+ int min, max, width;
};
struct box;
@@ -77,7 +77,7 @@ struct box {
int width; /**< Width of content box (excluding padding etc.). */
int height; /**< Height of content box (excluding padding etc.). */
int margin[4], padding[4], border[4];
- long min_width, max_width;
+ int min_width, max_width;
char * text;
unsigned int space : 1; /* 1 <=> followed by a space */
unsigned int clone : 1;
@@ -120,8 +120,8 @@ struct page_elements
};
-#define UNKNOWN_WIDTH ULONG_MAX
-#define UNKNOWN_MAX_WIDTH ULONG_MAX
+#define UNKNOWN_WIDTH INT_MAX
+#define UNKNOWN_MAX_WIDTH INT_MAX
/**
* interface