diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 22:00:00 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:00:08 +0100 |
commit | a8c540ea597fb17426c5458fa464f9c505c3bda8 (patch) | |
tree | ff85eff8288d5c1584d82ef6719b3c87ce7e5f48 /content/handlers/html/html.c | |
parent | cfe57002febe0f58dfc87f0173ad42126f1362f4 (diff) | |
download | netsurf-a8c540ea597fb17426c5458fa464f9c505c3bda8.tar.gz netsurf-a8c540ea597fb17426c5458fa464f9c505c3bda8.tar.bz2 |
move content specific selection end to content handlers
Diffstat (limited to 'content/handlers/html/html.c')
-rw-r--r-- | content/handlers/html/html.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c index 136c4eef2..2c471ae40 100644 --- a/content/handlers/html/html.c +++ b/content/handlers/html/html.c @@ -1056,7 +1056,7 @@ static void html_reformat(struct content *c, int width, int height) if (c->height < layout->y + layout->descendant_y1) c->height = layout->y + layout->descendant_y1; - selection_reinit(&htmlc->sel, htmlc->layout); + selection_reinit(&htmlc->sel); htmlc->reflowing = false; htmlc->had_initial_layout = true; @@ -1304,7 +1304,7 @@ html_open(struct content *c, html->drag_owner.no_owner = true; /* text selection */ - selection_init(&html->sel, html->layout); + selection_init(&html->sel); html->selection_type = HTML_SELECTION_NONE; html->selection_owner.none = true; @@ -2337,6 +2337,7 @@ static const content_handler html_content_handler = { .textsearch_bounds = html_textsearch_bounds, .textselection_redraw = html_textselection_redraw, .textselection_copy = html_textselection_copy, + .textselection_get_end = html_textselection_get_end, .create_selection = html_create_selection, .no_share = true, }; |