summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-04-27 10:20:44 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-04-27 10:20:44 +0000
commit044a9534008fd77a2cf8755943f3fe42fa177d54 (patch)
tree34375628059d79308fde785fd2a48a06a56a8b7f /render/box.h
parent9f7a794b1f7f8407973fd44fc18878dd39c1bd12 (diff)
downloadnetsurf-044a9534008fd77a2cf8755943f3fe42fa177d54.tar.gz
netsurf-044a9534008fd77a2cf8755943f3fe42fa177d54.tar.bz2
Make box_at_point() only return boxes if the point is physically contained within them, and not if the point is mearly in the descendant area. (Fixes sites like BBC F1 page where whole page became an iPlayer link.)
svn path=/trunk/netsurf/; revision=7335
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/render/box.h b/render/box.h
index 5d31a198b..9a90c21a4 100644
--- a/render/box.h
+++ b/render/box.h
@@ -293,9 +293,8 @@ void box_free_box(struct box *box);
void box_free_object_params(struct object_params *op);
void box_bounds(struct box *box, struct rect *r);
void box_coords(struct box *box, int *x, int *y);
-struct box *box_at_point(struct box *box, int x, int y,
- int *box_x, int *box_y,
- struct content **content);
+struct box *box_at_point(struct box *box, const int x, const int y,
+ int *box_x, int *box_y, struct content **content);
struct box *box_object_at_point(struct content *c, int x, int y);
struct box *box_href_at_point(struct content *c, int x, int y);
struct box *box_find_by_id(struct box *box, const char *id);