summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2006-03-26 23:05:08 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2006-03-26 23:05:08 +0000
commitaee810d4d32cb3f1c81e53902403524782f02cc9 (patch)
tree0ec19140feba60040c4a1eae63bcdd356c8e1799 /render
parent0f13799768d338e4a2d5736a7de688d65c0b10b4 (diff)
downloadnetsurf-aee810d4d32cb3f1c81e53902403524782f02cc9.tar.gz
netsurf-aee810d4d32cb3f1c81e53902403524782f02cc9.tar.bz2
[project @ 2006-03-26 23:05:08 by dsilvers]
Do not include the border in the extra margin calculation for <html> tags svn path=/import/netsurf/; revision=2188
Diffstat (limited to 'render')
-rw-r--r--render/html.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/render/html.c b/render/html.c
index 7724f8b35..c982a769f 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1372,12 +1372,10 @@ void html_reformat(struct content *c, int width, int height)
doc = c->data.html.layout;
c->width = doc->descendant_x1 +
- doc->margin[LEFT] + doc->margin[RIGHT] +
- doc->border[LEFT] + doc->border[RIGHT];
+ doc->margin[LEFT] + doc->margin[RIGHT];
c->height = doc->descendant_y1 +
- doc->margin[TOP] + doc->margin[BOTTOM] +
- doc->border[TOP] + doc->border[BOTTOM];
+ doc->margin[TOP] + doc->margin[BOTTOM];
}