Lines Matching refs:status
40 lxb_status_t status = lxb_html_tokenizer_init(parser->tkz); in lxb_html_parser_init() local
42 if (status != LXB_STATUS_OK) { in lxb_html_parser_init()
43 return status; in lxb_html_parser_init()
48 status = lxb_html_tree_init(parser->tree, parser->tkz); in lxb_html_parser_init()
50 if (status != LXB_STATUS_OK) { in lxb_html_parser_init()
51 return status; in lxb_html_parser_init()
129 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse()
134 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse()
165 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_fragment_by_tag_id()
170 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_fragment_by_tag_id()
194 return parser->status; in lxb_html_parse_fragment_chunk_begin()
209 parser->status = LXB_STATUS_ERROR_MEMORY_ALLOCATION; in lxb_html_parse_fragment_chunk_begin()
220 parser->status = LXB_STATUS_ERROR_MEMORY_ALLOCATION; in lxb_html_parse_fragment_chunk_begin()
226 parser->status = lxb_html_tree_open_elements_push(parser->tree, parser->root); in lxb_html_parse_fragment_chunk_begin()
227 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_fragment_chunk_begin()
232 parser->status = lxb_html_tree_template_insertion_push(parser->tree, in lxb_html_parse_fragment_chunk_begin()
234 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_fragment_chunk_begin()
246 parser->status = LXB_STATUS_ERROR_MEMORY_ALLOCATION; in lxb_html_parse_fragment_chunk_begin()
261 parser->status = lxb_html_tree_begin(parser->tree, new_doc); in lxb_html_parse_fragment_chunk_begin()
265 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_fragment_chunk_begin()
276 return parser->status; in lxb_html_parse_fragment_chunk_begin()
287 parser->status = lxb_html_tree_chunk(parser->tree, html, size); in lxb_html_parse_fragment_chunk_process()
288 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_fragment_chunk_process()
297 return parser->status; in lxb_html_parse_fragment_chunk_process()
304 parser->status = LXB_STATUS_ERROR_WRONG_STAGE; in lxb_html_parse_fragment_chunk_end()
309 parser->status = lxb_html_tree_end(parser->tree); in lxb_html_parse_fragment_chunk_end()
310 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_fragment_chunk_end()
367 parser->status = lxb_html_tree_begin(parser->tree, document); in lxb_html_parse_chunk_prepare()
368 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_chunk_prepare()
372 return parser->status; in lxb_html_parse_chunk_prepare()
387 parser->status = LXB_STATUS_ERROR_MEMORY_ALLOCATION; in lxb_html_parse_chunk_begin()
394 parser->status = lxb_html_parse_chunk_prepare(parser, document); in lxb_html_parse_chunk_begin()
395 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_chunk_begin()
410 parser->status = lxb_html_tree_chunk(parser->tree, html, size); in lxb_html_parse_chunk_process()
411 if (parser->status != LXB_STATUS_OK) { in lxb_html_parse_chunk_process()
415 return parser->status; in lxb_html_parse_chunk_process()
425 parser->status = lxb_html_tree_end(parser->tree); in lxb_html_parse_chunk_end()
431 return parser->status; in lxb_html_parse_chunk_end()