1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

document/html: Make HTML parser state transparent

Before, *_html_parser_state() operated with struct html_element *. Now, it is
transparent for the renderer (just void *), so that DOM won't have to provide
this struct but will be able to use something internal.
This commit is contained in:
Petr Baudis 2007-08-28 23:04:43 +02:00 committed by Petr Baudis
parent 14ae8ecc01
commit e876df70d8
2 changed files with 4 additions and 5 deletions

View File

@ -147,11 +147,10 @@ init_html_parser(struct uri *uri, struct document_options *options,
void (*line_break)(struct html_context *),
void *(*special)(struct html_context *, enum html_special_type,
...));
void done_html_parser(struct html_context *html_context);
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);
void *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, void *state);
/* Interface for the table handling */

View File

@ -2074,7 +2074,7 @@ format_html_part(struct html_context *html_context,
int link_num)
{
struct part *part;
struct html_element *html_state;
void *html_state;
int llm = renderer_context.last_link_to_move;
struct tag *ltm = renderer_context.last_tag_to_move;
int ef = renderer_context.empty_format;