From cfe57002febe0f58dfc87f0173ad42126f1362f4 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 23 May 2020 21:17:42 +0100 Subject: remove unused css length usage in selection --- content/handlers/html/html.c | 2 +- content/handlers/html/private.h | 1 + content/handlers/html/textselection.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'content/handlers/html') diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c index a8ae9e452..136c4eef2 100644 --- a/content/handlers/html/html.c +++ b/content/handlers/html/html.c @@ -1304,7 +1304,7 @@ html_open(struct content *c, html->drag_owner.no_owner = true; /* text selection */ - selection_init(&html->sel, html->layout, &html->len_ctx); + selection_init(&html->sel, html->layout); html->selection_type = HTML_SELECTION_NONE; html->selection_owner.none = true; diff --git a/content/handlers/html/private.h b/content/handlers/html/private.h index ff20be837..43b0e84f2 100644 --- a/content/handlers/html/private.h +++ b/content/handlers/html/private.h @@ -29,6 +29,7 @@ #include "netsurf/types.h" #include "content/content_protected.h" #include "desktop/selection.h" +#include "content/handlers/css/utils.h" struct gui_layout_table; diff --git a/content/handlers/html/textselection.c b/content/handlers/html/textselection.c index 11e9deeb4..67fd25be3 100644 --- a/content/handlers/html/textselection.c +++ b/content/handlers/html/textselection.c @@ -271,7 +271,7 @@ html_create_selection(struct content *c, struct selection **sel_out) return NSERROR_NOMEM; } - selection_init(sel, html->layout, &html->len_ctx); + selection_init(sel, html->layout); *sel_out = sel; return NSERROR_OK; -- cgit v1.2.3