From 29952cfc1f7b4db4ca8f999d1c52813b8a49ab01 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 23 Sep 2003 18:35:44 +0000 Subject: [project @ 2003-09-23 18:35:44 by bursa] More work on editing textareas. svn path=/import/netsurf/; revision=311 --- render/box.c | 2 -- render/box.h | 2 ++ render/layout.c | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/box.c b/render/box.c index e5e363fbd..749815f15 100644 --- a/render/box.c +++ b/render/box.c @@ -44,8 +44,6 @@ struct result { }; static void box_add_child(struct box * parent, struct box * child); -static struct box * box_create(struct css_style * style, - char *href, char *title); static struct box * convert_xml_to_box(xmlNode * n, struct content *content, struct css_style * parent_style, struct css_selector ** selector, unsigned int depth, diff --git a/render/box.h b/render/box.h index 9e2321ec2..9e8ce0599 100644 --- a/render/box.h +++ b/render/box.h @@ -184,6 +184,8 @@ struct page_elements void xml_to_box(xmlNode *n, struct content *c); void box_dump(struct box * box, unsigned int depth); +struct box * box_create(struct css_style * style, + char *href, char *title); void box_free(struct box *box); void box_coords(struct box *box, unsigned long *x, unsigned long *y); diff --git a/render/layout.c b/render/layout.c index 7ee46b898..3b9a61810 100644 --- a/render/layout.c +++ b/render/layout.c @@ -430,6 +430,9 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long c->space = 1; c2->next = c->next; c->next = c2; + c2->prev = c; + if (!c2->next) + c2->parent->last = c2; b = c2; } x += space_before + w; @@ -456,6 +459,9 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long c->space = 1; c2->next = c->next; c->next = c2; + c2->prev = c; + if (!c2->next) + c2->parent->last = c2; b = c2; x += space_before + w; /* fprintf(stderr, "layout_line: overflow, fit\n"); */ -- cgit v1.2.3