mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Rename enum html_element_type to html_element_mortality_type
This name is reserved for DOM.
This commit is contained in:
parent
ea2d7a3325
commit
89a95a5fc5
@ -659,7 +659,7 @@ get_image_map(unsigned char *head, unsigned char *pos, unsigned char *eof,
|
||||
|
||||
struct html_element *
|
||||
init_html_parser_state(struct html_context *html_context,
|
||||
enum html_element_type type,
|
||||
enum html_element_mortality_type type,
|
||||
int align, int margin, int width)
|
||||
{
|
||||
html_stack_dup(html_context, type);
|
||||
|
@ -102,7 +102,7 @@ struct par_attrib {
|
||||
};
|
||||
|
||||
/* HTML parser stack mortality info */
|
||||
enum html_element_type {
|
||||
enum html_element_mortality_type {
|
||||
/* Elements of this type can not be removed from the stack. This type
|
||||
* is created by the renderer when formatting a HTML part. */
|
||||
ELEMENT_IMMORTAL,
|
||||
@ -122,7 +122,7 @@ enum html_element_type {
|
||||
struct html_element {
|
||||
LIST_HEAD(struct html_element);
|
||||
|
||||
enum html_element_type type;
|
||||
enum html_element_mortality_type type;
|
||||
|
||||
struct text_attrib attr;
|
||||
struct par_attrib parattr;
|
||||
@ -173,7 +173,7 @@ init_html_parser(struct uri *uri, struct document_options *options,
|
||||
...));
|
||||
|
||||
void done_html_parser(struct html_context *html_context);
|
||||
struct html_element *init_html_parser_state(struct html_context *html_context, enum html_element_type type, int align, int margin, int width);
|
||||
struct html_element *init_html_parser_state(struct html_context *html_context, enum html_element_mortality_type type, int align, int margin, int width);
|
||||
void done_html_parser_state(struct html_context *html_context,
|
||||
struct html_element *element);
|
||||
|
||||
|
@ -127,7 +127,7 @@ kill_html_stack_item(struct html_context *html_context, struct html_element *e)
|
||||
|
||||
|
||||
void
|
||||
html_stack_dup(struct html_context *html_context, enum html_element_type type)
|
||||
html_stack_dup(struct html_context *html_context, enum html_element_mortality_type type)
|
||||
{
|
||||
struct html_element *e;
|
||||
struct html_element *ep = html_context->stack.next;
|
||||
|
@ -10,7 +10,7 @@ struct html_element *search_html_stack(struct html_context *html_context,
|
||||
unsigned char *name);
|
||||
|
||||
void html_stack_dup(struct html_context *html_context,
|
||||
enum html_element_type type);
|
||||
enum html_element_mortality_type type);
|
||||
|
||||
void kill_html_stack_item(struct html_context *html_context,
|
||||
struct html_element *e);
|
||||
|
Loading…
Reference in New Issue
Block a user