summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-10-22 20:58:11 +0000
committerJames Bursa <james@netsurf-browser.org>2004-10-22 20:58:11 +0000
commitda5d07f0bebb22b5d72bc9ccf8f3c04bd08f87b6 (patch)
treec0efdc050b0d82fe54fe835db6cd7e5d9938ce83 /render
parentefbb5167a3239af1be3b3161bf488aa89568717f (diff)
downloadnetsurf-da5d07f0bebb22b5d72bc9ccf8f3c04bd08f87b6.tar.gz
netsurf-da5d07f0bebb22b5d72bc9ccf8f3c04bd08f87b6.tar.bz2
[project @ 2004-10-22 20:58:11 by bursa]
Fix form textarea scrolling. The scrollbar now works properly. svn path=/import/netsurf/; revision=1334
Diffstat (limited to 'render')
-rw-r--r--render/form.h2
-rw-r--r--render/layout.c1
-rw-r--r--render/layout.h3
3 files changed, 4 insertions, 2 deletions
diff --git a/render/form.h b/render/form.h
index d0abd8e86..b5f57cf3c 100644
--- a/render/form.h
+++ b/render/form.h
@@ -58,7 +58,7 @@ struct form_control {
struct box *box;
struct box *caret_inline_container;
struct box *caret_text_box;
- unsigned int caret_box_offset, caret_form_offset;
+ size_t caret_box_offset, caret_form_offset;
unsigned int length;
int caret_pixel_offset;
unsigned int maxlength;
diff --git a/render/layout.c b/render/layout.c
index a59c23da0..253ce648a 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -67,7 +67,6 @@ static void calculate_inline_replaced_widths(struct box *box, int *min,
int *max, int *line_max);
static void calculate_inline_widths(struct box *box, int *min, int *line_max);
static bool calculate_table_widths(struct box *table);
-static void layout_calculate_descendant_bboxes(struct box *box);
/**
diff --git a/render/layout.h b/render/layout.h
index a46a6e399..1a926d904 100644
--- a/render/layout.h
+++ b/render/layout.h
@@ -20,9 +20,12 @@
#define SCROLLBAR_WIDTH 16
+struct box;
+
bool layout_document(struct box *box, int width, pool box_pool);
bool layout_block_context(struct box *block, pool box_pool);
bool layout_inline_container(struct box *box, int width,
struct box *cont, int cx, int cy, pool box_pool);
+void layout_calculate_descendant_bboxes(struct box *box);
#endif