mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-23 02:42:11 +03:00
Log chunk sizes
svn path=/trunk/netsurf/; revision=5124
This commit is contained in:
parent
14a7b25c69
commit
cd77be1349
@ -599,6 +599,7 @@ bool html_process_data(struct content *c, char *data, unsigned int size)
|
||||
|
||||
for (x = 0; x + CHUNK <= size; x += CHUNK) {
|
||||
#ifdef WITH_HUBBUB
|
||||
LOG(("Parsing %d bytes", CHUNK));
|
||||
err = hubbub_parser_parse_chunk(
|
||||
c->data.html.parser,
|
||||
(uint8_t *) data + x, CHUNK);
|
||||
@ -612,6 +613,7 @@ bool html_process_data(struct content *c, char *data, unsigned int size)
|
||||
}
|
||||
|
||||
#ifdef WITH_HUBBUB
|
||||
LOG(("Parsing %d bytes", (size - x)));
|
||||
err = hubbub_parser_parse_chunk(
|
||||
c->data.html.parser,
|
||||
(uint8_t *) data + x, (size - x));
|
||||
@ -693,6 +695,8 @@ bool html_process_data(struct content *c, char *data, unsigned int size)
|
||||
|
||||
encoding_change:
|
||||
|
||||
LOG(("Changing encoding"));
|
||||
|
||||
/* Free up hubbub, libxml2 etc */
|
||||
hubbub_parser_destroy(c->data.html.parser);
|
||||
if (c->data.html.document) {
|
||||
|
Loading…
Reference in New Issue
Block a user