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 /desktop/selection.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 'desktop/selection.h')
-rw-r--r-- | desktop/selection.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/selection.h b/desktop/selection.h index e2bc3b31d..2f3f6dcfe 100644 --- a/desktop/selection.h +++ b/desktop/selection.h @@ -25,6 +25,7 @@ #include <stdbool.h> #include "netsurf/mouse.h" +#include "content/handlers/css/utils.h" struct box; @@ -43,6 +44,7 @@ struct selection { struct content *c; struct box *root; + nscss_len_ctx len_ctx; unsigned max_idx; /* total bytes in text representation */ @@ -60,7 +62,10 @@ struct selection *selection_create(struct content *c, bool is_html); void selection_prepare(struct selection *s, struct content *c, bool is_html); void selection_destroy(struct selection *s); -void selection_init(struct selection *s, struct box *root); +void selection_init( + struct selection *s, + struct box *root, + const nscss_len_ctx *len_ctx); void selection_reinit(struct selection *s, struct box *root); /* struct box *selection_root(struct selection *s); */ |