Hubbub
|
Context for a tree builder. More...
#include <internal.h>
Data Fields | |
insertion_mode | mode |
The current insertion mode. More... | |
insertion_mode | second_mode |
The secondary insertion mode. More... | |
element_context * | element_stack |
Stack of open elements. More... | |
uint32_t | stack_alloc |
Number of stack slots allocated. More... | |
uint32_t | current_node |
Index of current node in stack. More... | |
formatting_list_entry * | formatting_list |
List of active formatting elements. More... | |
formatting_list_entry * | formatting_list_end |
End of active formatting list. More... | |
void * | head_element |
Pointer to HEAD element. More... | |
void * | form_element |
Pointer to most recently opened FORM element. More... | |
void * | document |
Pointer to the document node. More... | |
bool | enable_scripting |
Whether scripting is enabled. More... | |
struct { | |
insertion_mode mode | |
Insertion mode to return to. More... | |
element_type type | |
Type of node. More... | |
} | collect |
Context for character collecting. More... | |
bool | strip_leading_lr |
Whether to strip a LR from the start of the next character sequence received. More... | |
bool | in_table_foster |
Whether nodes that would be inserted into the current node should be foster parented. More... | |
bool | frameset_ok |
Whether to process a frameset. More... | |
Context for a tree builder.
Definition at line 73 of file internal.h.
struct { ... } hubbub_treebuilder_context::collect |
Context for character collecting.
Referenced by handle_generic_rcdata(), and parse_generic_rcdata().
uint32_t hubbub_treebuilder_context::current_node |
Index of current node in stack.
Definition at line 81 of file internal.h.
Referenced by aa_find_and_validate_formatting_element(), aa_find_bookmark_location_reparenting_misnested(), aa_find_furthest_block(), append_text(), close_implied_end_tags(), complete_script(), current_node(), current_table(), element_in_scope(), element_in_scope_in_non_html_ns(), element_stack_dump(), element_stack_pop(), element_stack_pop_until(), element_stack_push(), element_stack_remove(), foreign_break_out(), handle_after_frameset(), handle_after_head(), handle_before_head(), handle_before_html(), handle_in_body(), handle_in_column_group(), handle_in_foreign_content(), handle_in_frameset(), handle_in_head(), handle_in_row(), handle_in_select(), handle_in_table(), hubbub_treebuilder_destroy(), hubbub_treebuilder_token_handler(), insert_element(), prev_node(), process_0body_in_body(), process_0form_in_body(), process_0generic_in_body(), process_0p_in_body(), process_a_in_body(), process_applet_marquee_object_in_body(), process_body_in_body(), process_button_in_body(), process_dd_dt_li_in_body(), process_form_in_body(), process_frameset_in_body(), process_hN_in_body(), process_nobr_in_body(), process_presentational_in_body(), reconstruct_active_formatting_list(), and reset_insertion_mode().
void* hubbub_treebuilder_context::document |
Pointer to the document node.
Definition at line 93 of file internal.h.
Referenced by handle_after_after_body(), handle_after_after_frameset(), handle_before_html(), handle_initial(), hubbub_treebuilder_destroy(), hubbub_treebuilder_setopt(), and hubbub_treebuilder_token_handler().
element_context* hubbub_treebuilder_context::element_stack |
Stack of open elements.
Definition at line 79 of file internal.h.
Referenced by aa_clone_and_replace_entries(), aa_find_bookmark_location_reparenting_misnested(), aa_find_furthest_block(), aa_insert_into_foster_parent(), aa_remove_element_stack_item(), append_text(), close_implied_end_tags(), complete_script(), current_node(), current_table(), element_in_scope(), element_in_scope_in_non_html_ns(), element_stack_dump(), element_stack_pop(), element_stack_push(), element_stack_remove(), foreign_break_out(), handle_after_body(), handle_after_frameset(), handle_after_head(), handle_before_head(), handle_before_html(), handle_in_body(), handle_in_column_group(), handle_in_foreign_content(), handle_in_frameset(), handle_in_head(), handle_in_row(), handle_in_select(), handle_in_table(), hubbub_treebuilder_create(), hubbub_treebuilder_destroy(), insert_element(), prev_node(), process_0body_in_body(), process_0form_in_body(), process_0generic_in_body(), process_0p_in_body(), process_0presentational_in_body(), process_a_in_body(), process_applet_marquee_object_in_body(), process_body_in_body(), process_button_in_body(), process_dd_dt_li_in_body(), process_form_in_body(), process_frameset_in_body(), process_hN_in_body(), process_html_in_body(), process_nobr_in_body(), process_presentational_in_body(), process_start_tag(), reconstruct_active_formatting_list(), and reset_insertion_mode().
bool hubbub_treebuilder_context::enable_scripting |
Whether scripting is enabled.
Definition at line 95 of file internal.h.
Referenced by handle_generic_rcdata(), handle_in_head(), hubbub_treebuilder_setopt(), process_end_tag(), and process_start_tag().
void* hubbub_treebuilder_context::form_element |
Pointer to most recently opened FORM element.
Definition at line 90 of file internal.h.
Referenced by hubbub_treebuilder_destroy(), insert_element(), process_0form_in_body(), process_form_in_body(), and process_isindex_in_body().
formatting_list_entry* hubbub_treebuilder_context::formatting_list |
List of active formatting elements.
Definition at line 83 of file internal.h.
Referenced by formatting_list_append(), formatting_list_dump(), formatting_list_insert(), formatting_list_remove(), hubbub_treebuilder_destroy(), and reconstruct_active_formatting_list().
formatting_list_entry* hubbub_treebuilder_context::formatting_list_end |
End of active formatting list.
Definition at line 85 of file internal.h.
Referenced by aa_find_bookmark_location_reparenting_misnested(), aa_find_formatting_element(), aa_remove_element_stack_item(), clear_active_formatting_list_to_marker(), element_stack_pop(), element_stack_remove(), formatting_list_append(), formatting_list_insert(), formatting_list_remove(), handle_in_table(), process_0presentational_in_body(), and reconstruct_active_formatting_list().
bool hubbub_treebuilder_context::frameset_ok |
Whether to process a frameset.
Definition at line 110 of file internal.h.
Referenced by hubbub_treebuilder_create(), process_applet_marquee_object_in_body(), process_button_in_body(), process_character(), process_dd_dt_li_in_body(), process_frameset_in_body(), process_hr_in_body(), process_isindex_in_body(), process_select_in_body(), process_start_tag(), and process_textarea_in_body().
void* hubbub_treebuilder_context::head_element |
Pointer to HEAD element.
Definition at line 88 of file internal.h.
Referenced by handle_after_head(), handle_before_head(), and hubbub_treebuilder_destroy().
bool hubbub_treebuilder_context::in_table_foster |
Whether nodes that would be inserted into the current node should be foster parented.
Definition at line 106 of file internal.h.
Referenced by append_text(), handle_in_table(), insert_element(), process_comment_append(), and reconstruct_active_formatting_list().
insertion_mode hubbub_treebuilder_context::mode |
The current insertion mode.
Insertion mode to return to.
Definition at line 75 of file internal.h.
Referenced by act_as_if_end_tag_tr(), close_cell(), foreign_break_out(), handle_after_after_body(), handle_after_after_frameset(), handle_after_body(), handle_after_frameset(), handle_after_head(), handle_before_head(), handle_before_html(), handle_generic_rcdata(), handle_in_caption(), handle_in_cell(), handle_in_column_group(), handle_in_frameset(), handle_in_head(), handle_in_head_noscript(), handle_in_row(), handle_in_table(), handle_in_table_body(), handle_initial(), hubbub_treebuilder_create(), hubbub_treebuilder_token_handler(), parse_generic_rcdata(), process_0body_in_body(), process_as_in_secondary(), process_frameset_in_body(), process_start_tag(), reset_insertion_mode(), and table_sub_start_or_table_end().
insertion_mode hubbub_treebuilder_context::second_mode |
The secondary insertion mode.
Definition at line 76 of file internal.h.
Referenced by foreign_break_out(), process_as_in_secondary(), process_start_tag(), and reset_insertion_mode().
uint32_t hubbub_treebuilder_context::stack_alloc |
Number of stack slots allocated.
Definition at line 80 of file internal.h.
Referenced by element_stack_push(), and hubbub_treebuilder_create().
bool hubbub_treebuilder_context::strip_leading_lr |
Whether to strip a LR from the start of the next character sequence received.
Definition at line 102 of file internal.h.
Referenced by handle_generic_rcdata(), handle_in_body(), hubbub_treebuilder_create(), process_character(), process_start_tag(), and process_textarea_in_body().
element_type hubbub_treebuilder_context::type |
Type of node.
Definition at line 99 of file internal.h.
Referenced by handle_generic_rcdata(), and parse_generic_rcdata().