mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Fix text clipping bug.
svn path=/trunk/netsurf/; revision=11763
This commit is contained in:
parent
bf77abd2f5
commit
8a223ef1b2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user