diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2012-08-05 22:44:28 +0100 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2012-08-05 22:44:28 +0100 |
commit | e1b37918e8f6a54d708720c6925e2ef27c0e8119 (patch) | |
tree | f90242f4b4a99c76aed8702b77d31bb7750f89a4 /render/html.c | |
parent | 7716143240429371e8f357ddc44d15d343759ae1 (diff) | |
download | netsurf-e1b37918e8f6a54d708720c6925e2ef27c0e8119.tar.gz netsurf-e1b37918e8f6a54d708720c6925e2ef27c0e8119.tar.bz2 |
Reflect change to hubbub parser binding API.
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/render/html.c b/render/html.c index 8526ca001..3ee85b419 100644 --- a/render/html.c +++ b/render/html.c @@ -335,10 +335,10 @@ html_create_html_data(html_content *c, const http_parameter *params) c->parser = dom_hubbub_parser_create(c->encoding, true, nsoption_bool(enable_javascript), - &c->document, NULL, html_process_script, - c); + c, + &c->document); if ((c->parser == NULL) && (c->encoding != NULL)) { /* Ok, we don't support the declared encoding. Bailing out * isn't exactly user-friendly, so fall back to autodetect */ @@ -348,12 +348,10 @@ html_create_html_data(html_content *c, const http_parameter *params) c->parser = dom_hubbub_parser_create(c->encoding, true, nsoption_bool(enable_javascript), - &c->document, NULL, html_process_script, - c); - - + c, + &c->document); } if (c->parser == NULL) { @@ -451,10 +449,10 @@ html_process_encoding_change(struct content *c, html->parser = dom_hubbub_parser_create(html->encoding, true, nsoption_bool(enable_javascript), - &html->document, NULL, html_process_script, - html); + html, + &html->document); if (html->parser == NULL) { /* Ok, we don't support the declared encoding. Bailing out * isn't exactly user-friendly, so fall back to Windows-1252 */ @@ -471,11 +469,10 @@ html_process_encoding_change(struct content *c, html->parser = dom_hubbub_parser_create(html->encoding, true, nsoption_bool(enable_javascript), - &html->document, - NULL, html_process_script, - html); + html, + &html->document); if (html->parser == NULL) { union content_msg_data msg_data; |