diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-23 21:58:07 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-23 21:58:07 +0100 |
commit | 524965b867e9aaef4ba75d6e077fdfd6c0b88401 (patch) | |
tree | ef8a9d4b25e7131a9a793338ec3cd896c3760e70 /content/handlers/html/html_internal.h | |
parent | cb33f696a2683e7e848a0444f52945f2f56acc28 (diff) | |
download | netsurf-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/html_internal.h')
-rw-r--r-- | content/handlers/html/html_internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/handlers/html/html_internal.h b/content/handlers/html/html_internal.h index 7a8d95612..fd6354a5a 100644 --- a/content/handlers/html/html_internal.h +++ b/content/handlers/html/html_internal.h @@ -138,6 +138,10 @@ typedef struct html_content { /** A talloc context purely for the render box tree */ int *bctx; + /** A context pointer for the box conversion, NULL if no conversion + * is in progress. + */ + void *box_conversion_context; /** Box tree, or NULL. */ struct box *layout; /** Document background colour. */ |