summaryrefslogtreecommitdiff
path: root/render/html_redraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r--render/html_redraw.c7
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;