From aed81aa91750769bdea8881a1f56c25b7ba1b5b5 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Apr 2004 18:07:44 +0000 Subject: [project @ 2004-04-04 18:07:44 by jmb] Add pointer to containing content struct to box_selection and update box_under_area accordingly This ensures relative links in frames etc. are url_joined correctly. svn path=/import/netsurf/; revision=721 --- desktop/browser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop/browser.h') diff --git a/desktop/browser.h b/desktop/browser.h index 072201766..be237cbe7 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -81,6 +81,7 @@ struct browser_action struct box_selection { + struct content *content; struct box* box; int actual_x; int actual_y; @@ -99,7 +100,7 @@ void browser_window_destroy(struct browser_window *bw); int browser_window_action(struct browser_window* bw, struct browser_action* act); -void box_under_area(struct box* box, unsigned long x, unsigned long y, unsigned long ox, unsigned long oy, +void box_under_area(struct content *content, struct box* box, unsigned long x, unsigned long y, unsigned long ox, unsigned long oy, struct box_selection** found, int* count, int* plot_index); int box_position_lt(struct box_position* x, struct box_position* y); -- cgit v1.2.3