diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2018-01-05 23:20:21 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2018-01-05 23:20:21 +0000 |
commit | 891758bb6f363f10f9a673b167230735a9183244 (patch) | |
tree | 6059c45898a74fe06300f73f4cd75b3571fd2c75 /render/box.h | |
parent | 7bd1fb50c6415a21fae22f7bd534894e02b512bf (diff) | |
parent | 6be6fa1b2197ffe6e511c5eff9abe14d883f8478 (diff) | |
download | netsurf-891758bb6f363f10f9a673b167230735a9183244.tar.gz netsurf-891758bb6f363f10f9a673b167230735a9183244.tar.bz2 |
Merge branch 'tlsa/libcss-units'
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/render/box.h b/render/box.h index 2800d4026..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); @@ -356,6 +360,9 @@ bool box_hscrollbar_present(const struct box *box); nserror dom_to_box(struct dom_node *n, struct html_content *c, box_construct_complete_cb cb); -bool box_normalise_block(struct box *block, struct html_content *c); +bool box_normalise_block( + struct box *block, + const struct box *root, + struct html_content *c); #endif |