diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-08-25 19:30:10 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-08-25 19:30:10 +0000 |
commit | b89a093ba9203043a641ed870b02d55857e2f081 (patch) | |
tree | a83f8cfc1706b4603e188cf96681ef00746163ba /render | |
parent | ab077d82dd4686536107520fa94470998087074b (diff) | |
download | netsurf-b89a093ba9203043a641ed870b02d55857e2f081.tar.gz netsurf-b89a093ba9203043a641ed870b02d55857e2f081.tar.bz2 |
Don't draw scrollbars on the BOX_TABLEs.
svn path=/trunk/netsurf/; revision=5200
Diffstat (limited to 'render')
-rw-r--r-- | render/html_redraw.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index e4dce8183..7a398ec42 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -174,7 +174,7 @@ bool html_redraw_box(struct box *box, int x0, y0, x1, y1; int x_scrolled, y_scrolled; struct box *bg_box = NULL; - + #ifdef WITH_PDF_EXPORT if (html_redraw_printing && box->printed) return true; @@ -251,7 +251,7 @@ bool html_redraw_box(struct box *box, } else box->printed = true;/*it won't be printed anymore*/ #endif - + /* if visibility is hidden render children only */ if (box->style && box->style->visibility == CSS_VISIBILITY_HIDDEN) { if ((plot.group_start) && (!plot.group_start("hidden box"))) @@ -321,7 +321,7 @@ bool html_redraw_box(struct box *box, * element is processed, ignore the background. * + For any other box, just use its own styling. */ - + #ifdef WITH_PDF_EXPORT if (!html_redraw_printing || (html_redraw_printing && !option_remove_backgrounds)) { @@ -365,7 +365,7 @@ bool html_redraw_box(struct box *box, /* Any other box */ bg_box = box; } - + /* bg_box == NULL implies that this box should not have * its background rendered. Otherwise filter out linebreaks, * optimize away non-differing inlines, only plot background @@ -385,7 +385,7 @@ bool html_redraw_box(struct box *box, x + padding_width + border_right : x1; int py1 = y + padding_height + border_bottom < y1 ? y + padding_height + border_bottom : y1; - + /* valid clipping rectangles only */ if ((px0 < px1) && (py0 < py1)) { /* plot background */ @@ -486,7 +486,8 @@ bool html_redraw_box(struct box *box, return false; /* scrollbars */ - if (box->style && box->type != BOX_BR && box->type != BOX_INLINE && + if (box->style && box->type != BOX_BR && box->type != BOX_TABLE && + box->type != BOX_INLINE && (box->style->overflow == CSS_OVERFLOW_SCROLL || box->style->overflow == CSS_OVERFLOW_AUTO)) if (!html_redraw_scrollbars(box, scale, x, y, |