diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-11 21:35:53 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-11 21:35:53 +0200 |
commit | 1200c9668c531f0f6e97bc14faecfadc0c12fdcf (patch) | |
tree | e17985c020c8327bb96faeb607638ec1c70225a4 /src/html_common.hh | |
parent | 39c2aa181193c4f28118cbdcf54ae9a778460334 (diff) |
rework nonCssHints API of StyleEngine
* Instead of passing the nonCssHints as a CssPropertyList, set the hints
separately and create the list in StyleEngine.
* The CssPropertyList holding the nonCssHints is now completely managed
by StyleEngine and kept on the stack.
* Replace the table_cell_props mechanic in html.cc/table.cc with a
new method inheritNonCssHints() in StyleEngine.
Diffstat (limited to 'src/html_common.hh')
-rw-r--r-- | src/html_common.hh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/html_common.hh b/src/html_common.hh index 3cca82de..868d5d63 100644 --- a/src/html_common.hh +++ b/src/html_common.hh @@ -94,7 +94,6 @@ struct _DilloHtmlImage { }; struct _DilloHtmlState { - CssPropertyList *table_cell_props; DilloHtmlParseMode parse_mode; DilloHtmlTableMode table_mode; bool cell_text_align_set; @@ -242,11 +241,9 @@ int32_t a_Html_color_parse(DilloHtml *html, const char *subtag, int32_t default_color); dw::core::style::Length a_Html_parse_length (DilloHtml *html, const char *attr); -void a_Html_tag_set_align_attr(DilloHtml *html, CssPropertyList *props, - const char *tag, int tagsize); +void a_Html_tag_set_align_attr(DilloHtml *html, const char *tag, int tagsize); bool a_Html_tag_set_valign_attr(DilloHtml *html, - const char *tag, int tagsize, - CssPropertyList *props); + const char *tag, int tagsize); void a_Html_load_stylesheet(DilloHtml *html, DilloUrl *url); |