Fix text clipping bug.

svn path=/trunk/netsurf/; revision=11763
This commit is contained in:
Michael Drake 2011-02-22 22:07:28 +00:00
parent bf77abd2f5
commit 8a223ef1b2

View File

@ -409,7 +409,8 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent,
if (!plot.clip(&r))
return false;
} else {
/* clip box unchanged */
/* clip box is fine, clip to it */
if (!plot.clip(&r))
r = *clip;
}
@ -722,9 +723,8 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent,
y_parent + box->y, clip, scale);
}
if (box->type == BOX_BLOCK || box->type == BOX_INLINE_BLOCK ||
box->type == BOX_TABLE_CELL || box->object)
box->type == BOX_TABLE_CELL || box->type == BOX_INLINE)
if (!plot.clip(clip))
return false;