summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html.c')
-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];
}