[project @ 2005-08-14 21:43:36 by bursa]

Fix box_contains_point() for non-rectangular inlines.

svn path=/import/netsurf/; revision=1846
This commit is contained in:
James Bursa 2005-08-14 21:43:36 +00:00
parent 7a981bb70a
commit d3a5e7251d

View File

@ -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] &&