summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-09-07 19:26:42 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-09-07 19:26:42 +0000
commit2e012a4952e6fc80afc46c3a6ed135a7b7e9fd06 (patch)
tree3fa9ef4fb6c7924dba63c815ec82444ba1b899a9
parent98a0c25344ebf05a9d400e6e9ee4deba5fd13d5f (diff)
downloadnetsurf-2e012a4952e6fc80afc46c3a6ed135a7b7e9fd06.tar.gz
netsurf-2e012a4952e6fc80afc46c3a6ed135a7b7e9fd06.tar.bz2
Don't try to render overflow scrollbars for the root element.
svn path=/trunk/netsurf/; revision=12774
-rw-r--r--render/html_redraw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c
index ef440f65d..d055ee3af 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -724,7 +724,8 @@ bool html_redraw_box(const html_content *html, struct box *box,
CSS_OVERFLOW_SCROLL ||
css_computed_overflow(box->style) ==
CSS_OVERFLOW_AUTO)) || (box->object &&
- content_get_type(box->object) == CONTENT_HTML))) {
+ content_get_type(box->object) == CONTENT_HTML)) &&
+ box->parent != NULL) {
has_x_scroll = box_hscrollbar_present(box);
has_y_scroll = box_vscrollbar_present(box);