mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-12 22:09:19 +03:00
Fix clipping to exclude border for objects.
svn path=/trunk/netsurf/; revision=10728
This commit is contained in:
parent
73db706295
commit
93873344dd
@ -625,9 +625,10 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent,
|
||||
return false;
|
||||
}
|
||||
|
||||
/* clip to the padding edge for boxes with overflow hidden or scroll */
|
||||
if (box->style && css_computed_overflow(box->style) !=
|
||||
CSS_OVERFLOW_VISIBLE) {
|
||||
/* clip to the padding edge for objects, or boxes with overflow hidden
|
||||
* or scroll */
|
||||
if (box->object || (box->style && css_computed_overflow(box->style) !=
|
||||
CSS_OVERFLOW_VISIBLE)) {
|
||||
r.x0 = x;
|
||||
r.y0 = y;
|
||||
r.x1 = x + padding_width;
|
||||
|
Loading…
Reference in New Issue
Block a user