Allow box at point to search descendant space of boxes with no style.

svn path=/trunk/netsurf/; revision=7359
This commit is contained in:
Michael Drake 2009-04-28 21:24:11 +00:00
parent a99a5bdd70
commit 68a72d17ab

View File

@ -470,7 +470,8 @@ bool box_contains_point(struct box *box, int x, int y, bool *physically)
*physically = true;
return true;
}
if (box->style && box->style->overflow == CSS_OVERFLOW_VISIBLE) {
if ((box->style && box->style->overflow == CSS_OVERFLOW_VISIBLE) ||
!box->style) {
if (box->x + box->descendant_x0 <= x &&
x < box->x + box->descendant_x1 &&
box->y + box->descendant_y0 <= y &&