diff options
author | James Bursa <james@netsurf-browser.org> | 2005-08-14 21:43:36 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-08-14 21:43:36 +0000 |
commit | d3a5e7251db1e09846affde32f3a202f762d2da7 (patch) | |
tree | 303a264fcb0b2d1d50a77003d69517e55457b955 | |
parent | 7a981bb70a1f23fffe51b023add3322e8a59d716 (diff) | |
download | netsurf-d3a5e7251db1e09846affde32f3a202f762d2da7.tar.gz netsurf-d3a5e7251db1e09846affde32f3a202f762d2da7.tar.bz2 |
[project @ 2005-08-14 21:43:36 by bursa]
Fix box_contains_point() for non-rectangular inlines.
svn path=/import/netsurf/; revision=1846
-rw-r--r-- | render/box.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/render/box.c b/render/box.c index e871b866b..37fc6f1d0 100644 --- a/render/box.c +++ b/render/box.c @@ -352,7 +352,8 @@ siblings: bool box_contains_point(struct box *box, int x, int y) { - if (box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) { + if ((box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) || + box->inline_end) { if (box->x <= x + box->border[LEFT] && x < box->x + box->padding[LEFT] + box->width + box->border[RIGHT] + box->padding[RIGHT] && |