diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-08-26 15:50:03 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-08-26 15:50:03 +0100 |
commit | d70beb28db6f978ae9fc674640f3101e20c05bb8 (patch) | |
tree | 44eb1e63f612675d75bceebbb85fcebb44588d49 /render/html_script.c | |
parent | aedd9b55132bb48f6d25ae4c080dc0ce71efb44d (diff) | |
download | netsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.gz netsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.bz2 |
Content API: Make content_broadcast take pointer to content_msg_data.
Diffstat (limited to 'render/html_script.c')
-rw-r--r-- | render/html_script.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/render/html_script.c b/render/html_script.c index 37b0564d7..c07e5a372 100644 --- a/render/html_script.c +++ b/render/html_script.c @@ -355,7 +355,7 @@ exec_src_script(html_content *c, ns_error = nsurl_join(c->base_url, dom_string_data(src), &joined); if (ns_error != NSERROR_OK) { msg_data.error = messages_get("NoMemory"); - content_broadcast(&c->base, CONTENT_MSG_ERROR, msg_data); + content_broadcast(&c->base, CONTENT_MSG_ERROR, &msg_data); return DOM_HUBBUB_NOMEM; } @@ -411,7 +411,7 @@ exec_src_script(html_content *c, if (nscript == NULL) { nsurl_unref(joined); msg_data.error = messages_get("NoMemory"); - content_broadcast(&c->base, CONTENT_MSG_ERROR, msg_data); + content_broadcast(&c->base, CONTENT_MSG_ERROR, &msg_data); return DOM_HUBBUB_NOMEM; } @@ -483,7 +483,7 @@ exec_inline_script(html_content *c, dom_node *node, dom_string *mimetype) dom_string_unref(script); msg_data.error = messages_get("NoMemory"); - content_broadcast(&c->base, CONTENT_MSG_ERROR, msg_data); + content_broadcast(&c->base, CONTENT_MSG_ERROR, &msg_data); return DOM_HUBBUB_NOMEM; } @@ -526,7 +526,7 @@ html_process_script(void *ctx, dom_node *node) union content_msg_data msg_data; msg_data.jscontext = &c->jscontext; - content_broadcast(&c->base, CONTENT_MSG_GETCTX, msg_data); + content_broadcast(&c->base, CONTENT_MSG_GETCTX, &msg_data); LOG("javascript context %p ", c->jscontext); if (c->jscontext == NULL) { /* no context and it could not be created, abort */ |