From a8596a80aeb70acb05aba29f654df24210f50c19 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 10 May 2020 23:22:29 +0100 Subject: move free text search general interface to content. needs additional cleanup to call content through handler table to perform searches. --- content/handlers/html/html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/handlers/html/html.c') diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c index af06431bf..a3d426461 100644 --- a/content/handlers/html/html.c +++ b/content/handlers/html/html.c @@ -49,6 +49,7 @@ #include "netsurf/misc.h" #include "content/hlcache.h" #include "content/content_factory.h" +#include "content/textsearch.h" #include "desktop/selection.h" #include "desktop/scrollbar.h" #include "desktop/textarea.h" @@ -69,7 +70,6 @@ #include "html/form_internal.h" #include "html/imagemap.h" #include "html/layout.h" -#include "html/search.h" #define CHUNK 4096 @@ -1327,7 +1327,7 @@ static nserror html_close(struct content *c) selection_clear(&htmlc->sel, false); if (htmlc->search != NULL) { - search_destroy_context(htmlc->search); + content_textsearch_destroy(htmlc->search); } /* clear the html content reference to the browser window */ -- cgit v1.2.3