summaryrefslogtreecommitdiff
path: root/content/handlers/html/box.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-23 21:58:07 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-23 21:58:07 +0100
commit524965b867e9aaef4ba75d6e077fdfd6c0b88401 (patch)
treeef8a9d4b25e7131a9a793338ec3cd896c3760e70 /content/handlers/html/box.h
parentcb33f696a2683e7e848a0444f52945f2f56acc28 (diff)
downloadnetsurf-524965b867e9aaef4ba75d6e077fdfd6c0b88401.tar.gz
netsurf-524965b867e9aaef4ba75d6e077fdfd6c0b88401.tar.bz2
Box Conversion: Cancel conversion during html_destroy
If dom_to_box is still in progress when we destroy an HTML content, we need to cancel the conversion otherwise we will end up with a scheduled callback into infinity. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/html/box.h')
-rw-r--r--content/handlers/html/box.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/handlers/html/box.h b/content/handlers/html/box.h
index 6939cfe1a..089c66433 100644
--- a/content/handlers/html/box.h
+++ b/content/handlers/html/box.h
@@ -359,7 +359,8 @@ bool box_vscrollbar_present(const struct box *box);
bool box_hscrollbar_present(const struct box *box);
nserror dom_to_box(struct dom_node *n, struct html_content *c,
- box_construct_complete_cb cb);
+ box_construct_complete_cb cb, void **box_conversion_context);
+nserror cancel_dom_to_box(void *box_conversion_context);
bool box_normalise_block(
struct box *block,