From 951fde7f55e2c74f58af69c71126c48e30425581 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 21 Jan 2012 22:48:51 +0100 Subject: add support for the CSS display: property --- src/html_common.hh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/html_common.hh') diff --git a/src/html_common.hh b/src/html_common.hh index cf5c8114..8eed11f3 100644 --- a/src/html_common.hh +++ b/src/html_common.hh @@ -34,6 +34,9 @@ html->bugMessage(__VA_ARGS__); \ } D_STMT_END + +extern bool tagIsDisplayEnabled; + /* * Typedefs */ @@ -103,7 +106,7 @@ struct _DilloHtmlState { DilloHtmlTableMode table_mode; DilloHtmlTableBorderMode table_border_mode; bool cell_text_align_set; - + bool display_none; DilloHtmlListMode list_type; int list_number; @@ -238,8 +241,8 @@ DilloUrl *a_Html_url_new(DilloHtml *html, const char *url_str, const char *base_url, int use_base_url); -DilloImage *a_Html_image_new(DilloHtml *html, const char *tag, - int tagsize, DilloUrl *url); +void a_Html_image_new(DilloHtml *html, const char *tag, int tagsize); +DilloImage *a_Html_image_add(DilloHtml *html, DilloUrl *url); char *a_Html_parse_entities(DilloHtml *html, const char *token, int toksize); void a_Html_pop_tag(DilloHtml *html, int TagIdx); -- cgit v1.2.3