diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2021-03-29 10:45:59 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-30 11:52:33 +0100 |
commit | fa64d91d12c94c9aa230cd231b1d2e16054b41f2 (patch) | |
tree | bb25197831ca661cec35c69940c5b7c08eaaca36 /content/handlers/html/interaction.c | |
parent | 638a408ddee7329f8de2a6e550b7fcc2a4baa4a3 (diff) | |
download | netsurf-fa64d91d12c94c9aa230cd231b1d2e16054b41f2.tar.gz netsurf-fa64d91d12c94c9aa230cd231b1d2e16054b41f2.tar.bz2 |
Switch to new libcss API for unit conversion.
Diffstat (limited to 'content/handlers/html/interaction.c')
-rw-r--r-- | content/handlers/html/interaction.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/handlers/html/interaction.c b/content/handlers/html/interaction.c index 90e7b7626..026ef1ee7 100644 --- a/content/handlers/html/interaction.c +++ b/content/handlers/html/interaction.c @@ -211,7 +211,7 @@ static size_t html_selection_drag_end(struct html_content *html, if (box) { plot_font_style_t fstyle; - font_plot_style_from_css(&html->len_ctx, box->style, &fstyle); + font_plot_style_from_css(&html->unit_len_ctx, box->style, &fstyle); guit->layout->position(&fstyle, box->text, box->length, dx, &idx, &pixel_offset); @@ -424,7 +424,7 @@ mouse_action_drag_selection(html_content *html, box = box_pick_text_box(html, x, y, dir, &dx, &dy); if (box != NULL) { - font_plot_style_from_css(&html->len_ctx, box->style, &fstyle); + font_plot_style_from_css(&html->unit_len_ctx, box->style, &fstyle); guit->layout->position(&fstyle, box->text, @@ -805,7 +805,7 @@ get_mouse_action_node(html_content *html, next_box: /* iterate to next box */ - box = box_at_point(&html->len_ctx, box, x, y, &box_x, &box_y); + box = box_at_point(&html->unit_len_ctx, box, x, y, &box_x, &box_y); } while (box != NULL); /* use of box_x, box_y, or content below this point is probably a @@ -1209,7 +1209,7 @@ default_mouse_action(html_content *html, size_t idx; plot_font_style_t fstyle; - font_plot_style_from_css(&html->len_ctx, + font_plot_style_from_css(&html->unit_len_ctx, mas->text.box->style, &fstyle); |