diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-22 22:07:28 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-22 22:07:28 +0000 |
commit | 8a223ef1b2109a4ca40e503ba8d8e00cb0457ec8 (patch) | |
tree | f420fe3e2fa79980e6134a61e56113fb8e1aa8e1 | |
parent | bf77abd2f52f88035428b990a04e020476c72fb1 (diff) | |
download | netsurf-8a223ef1b2109a4ca40e503ba8d8e00cb0457ec8.tar.gz netsurf-8a223ef1b2109a4ca40e503ba8d8e00cb0457ec8.tar.bz2 |
Fix text clipping bug.
svn path=/trunk/netsurf/; revision=11763
-rw-r--r-- | render/html_redraw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index 383bf287e..10b2679aa 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -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; |