diff options
author | James Bursa <james@netsurf-browser.org> | 2003-02-25 21:00:27 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-02-25 21:00:27 +0000 |
commit | 8edb43af7dbf0b28892f9d8a8d8ddae523e41b73 (patch) | |
tree | f83c7ed22bfac320b468979e181630e7ebc6dfe4 /render | |
parent | 9209f8e6cbd2423a243dcab05bbff2e41d193d3f (diff) | |
download | netsurf-8edb43af7dbf0b28892f9d8a8d8ddae523e41b73.tar.gz netsurf-8edb43af7dbf0b28892f9d8a8d8ddae523e41b73.tar.bz2 |
[project @ 2003-02-25 21:00:27 by bursa]
Bug fixes, experimental JPEG support.
svn path=/import/netsurf/; revision=100
Diffstat (limited to 'render')
-rw-r--r-- | render/html.c | 9 | ||||
-rw-r--r-- | render/textplain.c | 9 |
2 files changed, 13 insertions, 5 deletions
diff --git a/render/html.c b/render/html.c index f500d3405..e8d2f69b2 100644 --- a/render/html.c +++ b/render/html.c @@ -1,5 +1,5 @@ /** - * $Id: html.c,v 1.1 2003/02/09 12:58:15 bursa Exp $ + * $Id: html.c,v 1.2 2003/02/25 21:00:27 bursa Exp $ */ #include <assert.h> @@ -97,6 +97,9 @@ int html_convert(struct content *c, unsigned int width, unsigned int height) layout_document(c->data.html.layout->children, width); box_dump(c->data.html.layout->children, 0); + c->width = c->data.html.layout->children->width; + c->height = c->data.html.layout->children->height; + return 0; } @@ -131,12 +134,16 @@ void html_revive(struct content *c, unsigned int width, unsigned int height) { /* TODO: reload stylesheets and images and fix any pointers to them */ layout_document(c->data.html.layout->children, width); + c->width = c->data.html.layout->children->width; + c->height = c->data.html.layout->children->height; } void html_reformat(struct content *c, unsigned int width, unsigned int height) { layout_document(c->data.html.layout->children, width); + c->width = c->data.html.layout->children->width; + c->height = c->data.html.layout->children->height; } diff --git a/render/textplain.c b/render/textplain.c index c5407c6f5..84875804c 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -1,5 +1,5 @@ /** - * $Id: textplain.c,v 1.1 2003/02/09 12:58:15 bursa Exp $ + * $Id: textplain.c,v 1.2 2003/02/25 21:00:27 bursa Exp $ */ #include <assert.h> @@ -30,23 +30,24 @@ void textplain_process_data(struct content *c, char *data, unsigned long size) int textplain_convert(struct content *c, unsigned int width, unsigned int height) { htmlParseChunk(c->data.html.parser, footer, sizeof(footer), 0); + c->type = CONTENT_HTML; return html_convert(c, width, height); } void textplain_revive(struct content *c, unsigned int width, unsigned int height) { - html_revive(c, width, height); + assert(0); } void textplain_reformat(struct content *c, unsigned int width, unsigned int height) { - html_reformat(c, width, height); + assert(0); } void textplain_destroy(struct content *c) { - html_destroy(c); + assert(0); } |