diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2018-01-03 23:58:18 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2018-01-05 13:49:51 +0000 |
commit | 6be6fa1b2197ffe6e511c5eff9abe14d883f8478 (patch) | |
tree | 6059c45898a74fe06300f73f4cd75b3571fd2c75 /render/box.h | |
parent | a67973f312b7cba8a6d56f9841a542a731a9ddb4 (diff) | |
download | netsurf-6be6fa1b2197ffe6e511c5eff9abe14d883f8478.tar.gz netsurf-6be6fa1b2197ffe6e511c5eff9abe14d883f8478.tar.bz2 |
CSS utils: Handle new units in length conversion routines.
This causes a ripple effect of all the callsites needing
information they didn't have.
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/render/box.h b/render/box.h index 8208a6fd3..1af0a8b73 100644 --- a/render/box.h +++ b/render/box.h @@ -91,6 +91,8 @@ #include <stdio.h> #include <libcss/libcss.h> +#include "content/handlers/css/utils.h" + struct content; struct box; struct browser_window; @@ -328,7 +330,9 @@ void box_free(struct box *box); void box_free_box(struct box *box); 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, const int x, const int y, +struct box *box_at_point( + const nscss_len_ctx *len_ctx, + struct box *box, const int x, const int y, int *box_x, int *box_y); struct box *box_pick_text_box(struct html_content *html, int x, int y, int dir, int *dx, int *dy); |