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/form.cc | |
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/form.cc')
-rw-r--r-- | src/form.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/form.cc b/src/form.cc index 38afea8f..a74bcdd6 100644 --- a/src/form.cc +++ b/src/form.cc @@ -554,12 +554,9 @@ void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize) } if (prefs.show_tooltip && (attrbuf = a_Html_get_attr(html, tag, tagsize, "title"))) { - CssPropertyList props; - char *tooltip_str = dStrdup(attrbuf); - props.set (PROPERTY_X_TOOLTIP, CSS_TYPE_STRING, tooltip_str); - html->styleEngine->setNonCssHints (&props); - dFree(tooltip_str); + html->styleEngine->setNonCssHint (PROPERTY_X_TOOLTIP, CSS_TYPE_STRING, + attrbuf); } HT2TB(html)->addWidget (embed, html->styleEngine->backgroundStyle()); } |