summaryrefslogtreecommitdiff
path: root/render/search.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2018-01-03 23:58:18 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2018-01-05 13:49:51 +0000
commit6be6fa1b2197ffe6e511c5eff9abe14d883f8478 (patch)
tree6059c45898a74fe06300f73f4cd75b3571fd2c75 /render/search.c
parenta67973f312b7cba8a6d56f9841a542a731a9ddb4 (diff)
downloadnetsurf-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 'render/search.c')
-rw-r--r--render/search.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/render/search.c b/render/search.c
index 8f21d8758..ca9520165 100644
--- a/render/search.c
+++ b/render/search.c
@@ -621,13 +621,14 @@ void search_show_all(bool all, struct search_context *context)
if (!a->sel)
continue;
- selection_init(a->sel, html->layout);
+ selection_init(a->sel, html->layout,
+ &html->len_ctx);
} else {
a->sel = selection_create(context->c, false);
if (!a->sel)
continue;
- selection_init(a->sel, NULL);
+ selection_init(a->sel, NULL, NULL);
}
selection_set_start(a->sel, a->start_idx);