mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-24 19:32:07 +03:00
[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:
parent
7a981bb70a
commit
d3a5e7251d
@ -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] &&
|
||||
|
Loading…
Reference in New Issue
Block a user