summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-28 12:30:56 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-28 12:30:56 +0000
commit25e7c86fb7d4867be59ab2659960f2d25dd6aca5 (patch)
tree412a54c42ada4c708390e8516f9b884629262f82 /render
parentee5dfee544760278ea48ee3a288e3c1ea9f5edcb (diff)
downloadnetsurf-25e7c86fb7d4867be59ab2659960f2d25dd6aca5.tar.gz
netsurf-25e7c86fb7d4867be59ab2659960f2d25dd6aca5.tar.bz2
Make search_term_highlighted a core function.
svn path=/trunk/netsurf/; revision=12524
Diffstat (limited to 'render')
-rw-r--r--render/html_redraw.c5
-rw-r--r--render/textplain.c3
2 files changed, 3 insertions, 5 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c
index 4cfa7f3e2..8913711ba 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -35,7 +35,6 @@
#include "content/content_protected.h"
#include "css/css.h"
#include "css/utils.h"
-#include "desktop/gui.h"
#include "desktop/plotters.h"
#include "desktop/selection.h"
#include "desktop/textinput.h"
@@ -877,8 +876,8 @@ bool text_redraw(const char *utf8_text, size_t utf8_len,
/* what about the current search operation, if any? */
if (!highlighted && (current_redraw_browser->search_context
!= NULL) &&
- gui_search_term_highlighted(
- current_redraw_browser->window,
+ search_term_highlighted(
+ current_redraw_browser,
offset, offset + len,
&start_idx, &end_idx,
current_redraw_browser->
diff --git a/render/textplain.c b/render/textplain.c
index 8a1bdc88a..8f5b80bff 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -785,8 +785,7 @@ bool textplain_redraw(struct content *c, int x, int y,
if (!highlighted && (bw->search_context
!= NULL)) {
unsigned start_idx, end_idx;
- if (gui_search_term_highlighted(
- bw->window,
+ if (search_term_highlighted(bw,
tab_ofst, tab_ofst + 1,
&start_idx, &end_idx,
bw->search_context))