diff options
author | James Bursa <james@netsurf-browser.org> | 2004-08-25 23:56:49 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-08-25 23:56:49 +0000 |
commit | e44249f6edb3781ebc6816e79791ba266a568935 (patch) | |
tree | a199eb5d2604a295cb469a8d5e66649a1fb9ff25 /render | |
parent | 26d107c444cd6e30a0dacf707470c6cda267d34b (diff) | |
download | netsurf-e44249f6edb3781ebc6816e79791ba266a568935.tar.gz netsurf-e44249f6edb3781ebc6816e79791ba266a568935.tar.bz2 |
[project @ 2004-08-25 23:56:48 by bursa]
Experimental overflow: scroll code.
svn path=/import/netsurf/; revision=1250
Diffstat (limited to 'render')
-rw-r--r-- | render/box.c | 1 | ||||
-rw-r--r-- | render/box.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/render/box.c b/render/box.c index 64b225bce..543d795c7 100644 --- a/render/box.c +++ b/render/box.c @@ -214,6 +214,7 @@ struct box * box_create(struct css_style * style, box->descendant_x1 = box->descendant_y1 = 0; for (i = 0; i != 4; i++) box->margin[i] = box->padding[i] = box->border[i] = 0; + box->scroll_x = box->scroll_y = 0; box->min_width = 0; box->max_width = UNKNOWN_MAX_WIDTH; box->text = NULL; diff --git a/render/box.h b/render/box.h index 8014b9856..c50c7ef00 100644 --- a/render/box.h +++ b/render/box.h @@ -155,6 +155,9 @@ struct box { int padding[4]; /**< Padding: TOP, RIGHT, BOTTOM, LEFT. */ int border[4]; /**< Border width: TOP, RIGHT, BOTTOM, LEFT. */ + int scroll_x; /**< Horizontal scroll of descendants. */ + int scroll_y; /**< Vertical scroll of descendants. */ + /**< Width of box taking all line breaks (including margins etc.). */ int min_width; int max_width; /**< Width that would be taken with no line breaks. */ |