diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-08-30 21:47:54 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-08-30 21:47:54 +0000 |
commit | 93873344dde468ef9e20aa6634b4112a1fefebde (patch) | |
tree | b61f81ebe8bd148ffbe32e858274cf2351491f44 /render/html_redraw.c | |
parent | 73db706295f1b5a16309e4e334367e5d8469573f (diff) | |
download | netsurf-93873344dde468ef9e20aa6634b4112a1fefebde.tar.gz netsurf-93873344dde468ef9e20aa6634b4112a1fefebde.tar.bz2 |
Fix clipping to exclude border for objects.
svn path=/trunk/netsurf/; revision=10728
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r-- | render/html_redraw.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index 4398fdbdc..feebe1d11 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -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; |