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/html.c | |
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/html.c')
-rw-r--r-- | render/html.c | 9 |
1 files changed, 8 insertions, 1 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; } |