diff options
author | James Bursa <james@netsurf-browser.org> | 2005-07-02 18:17:51 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-07-02 18:17:51 +0000 |
commit | 9b78daf135d7fa555990454c219649e4d54157d2 (patch) | |
tree | d5d8c1d773d0ef51afbe055dcff60607821f7a9c /render/html.c | |
parent | 894ba8b6230ffa57e1a5037adbd1b246a9a877da (diff) | |
download | netsurf-9b78daf135d7fa555990454c219649e4d54157d2.tar.gz netsurf-9b78daf135d7fa555990454c219649e4d54157d2.tar.bz2 |
[project @ 2005-07-02 18:17:51 by bursa]
Rewrite calculation of box minimum and maximum widths to improve layout of many pages. Move calculation of column types and border collapsing to box tree normalising stage, since they are layout independent. Add window height parameter to layout and make <html> and <body> at least window height.
svn path=/import/netsurf/; revision=1777
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/html.c b/render/html.c index fe3488709..7e7062df9 100644 --- a/render/html.c +++ b/render/html.c @@ -338,7 +338,7 @@ bool html_convert(struct content *c, int width, int height) content_set_status(c, messages_get("Formatting")); content_broadcast(c, CONTENT_MSG_STATUS, msg_data); LOG(("Layout document")); - layout_document(c, width); + layout_document(c, width, height); /*box_dump(c->data.html.layout->children, 0);*/ c->width = c->data.html.layout->descendant_x1; c->height = c->data.html.layout->descendant_y1; @@ -1126,7 +1126,7 @@ void html_stop(struct content *c) void html_reformat(struct content *c, int width, int height) { - layout_document(c, width); + layout_document(c, width, height); c->width = c->data.html.layout->descendant_x1; c->height = c->data.html.layout->descendant_y1; } |