Restore clipping rectangle before rendering scrollbars. Fixes broken rendering due to interaction between text selection and scroll.

svn path=/trunk/netsurf/; revision=12379
This commit is contained in:
Michael Drake 2011-05-11 09:21:43 +00:00
parent d41dcfa780
commit 297f1dfebb
1 changed files with 5 additions and 0 deletions

View File

@ -689,6 +689,11 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent,
return false;
}
if (box->type == BOX_BLOCK || box->type == BOX_INLINE_BLOCK ||
box->type == BOX_TABLE_CELL || box->type == BOX_INLINE)
if (!plot.clip(clip))
return false;
/* list marker */
if (box->list_marker)
if (!html_redraw_box(box->list_marker,