summaryrefslogtreecommitdiff
path: root/content/handlers/html/html_internal.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-04 12:18:21 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-04 12:18:21 +0100
commit19b45fb494358838be8b3175fde9e3ab55ef5bfa (patch)
treed872d6c39ffc3d629a9a58610e4730f27184b751 /content/handlers/html/html_internal.h
parent90cabaf8c88782a07cd8bdc448bd21e471eeb072 (diff)
downloadnetsurf-19b45fb494358838be8b3175fde9e3ab55ef5bfa.tar.gz
netsurf-19b45fb494358838be8b3175fde9e3ab55ef5bfa.tar.bz2
Support script insertion after conversion has begun
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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/handlers/html/html_internal.h b/content/handlers/html/html_internal.h
index 77354c369..a4ae1da57 100644
--- a/content/handlers/html/html_internal.h
+++ b/content/handlers/html/html_internal.h
@@ -98,6 +98,7 @@ typedef struct html_content {
dom_hubbub_parser *parser; /**< Parser object handle */
bool parse_completed; /**< Whether the parse has been completed */
+ bool conversion_begun; /**< Whether or not the conversion has begun */
/** Document tree */
dom_document *document;
@@ -313,9 +314,10 @@ dom_hubbub_error html_process_script(void *ctx, dom_node *node);
* http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#the-script-element
*
* \param htmlc html content.
+ * \param allow_defer allow deferred execution, if not, only async scripts.
* \return NSERROR_OK error code.
*/
-nserror html_script_exec(html_content *htmlc);
+nserror html_script_exec(html_content *htmlc, bool allow_defer);
/**
* Free all script resources and references for a html content.