From 524965b867e9aaef4ba75d6e077fdfd6c0b88401 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 23 Aug 2019 21:58:07 +0100 Subject: 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 --- content/handlers/html/box.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content/handlers/html/box.h') 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, -- cgit v1.2.3