diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-04-28 21:24:11 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-04-28 21:24:11 +0000 |
commit | 68a72d17ab7268fdcf527e32d8aa181cdd9391d3 (patch) | |
tree | 6392742f6c9dbcb1167c293e0cc3b24e8777de93 /render | |
parent | a99a5bdd707f27c9fb9a92a18f94830d710a7bee (diff) | |
download | netsurf-68a72d17ab7268fdcf527e32d8aa181cdd9391d3.tar.gz netsurf-68a72d17ab7268fdcf527e32d8aa181cdd9391d3.tar.bz2 |
Allow box at point to search descendant space of boxes with no style.
svn path=/trunk/netsurf/; revision=7359
Diffstat (limited to 'render')
-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 1735eba56..7dde0b759 100644 --- a/render/box.c +++ b/render/box.c @@ -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 && |