diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-03 22:04:05 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-03 22:04:05 +0100 |
commit | a15d6b7e7501012f5ef5de74406cf6ec8241312b (patch) | |
tree | ee985688460b6f98291222318b4f92a73b019b5e /src | |
parent | 210165afdec42b89eb69bb2ae9f7231dba265e4f (diff) |
convert <object> handling
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/src/html.cc b/src/html.cc index 2ed56d69..ccaed573 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2355,10 +2355,9 @@ static void Html_tag_open_area(DilloHtml *html, const char *tag, int tagsize) */ static void Html_tag_open_object(DilloHtml *html, const char *tag, int tagsize) { - StyleAttrs style_attrs; - Style *style; DilloUrl *url, *base_url = NULL; const char *attrbuf; + CssPropertyList props; if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "codebase"))) { base_url = a_Html_url_new(html, attrbuf, NULL, 0); @@ -2369,31 +2368,16 @@ static void Html_tag_open_object(DilloHtml *html, const char *tag, int tagsize) URL_STR(base_url), (base_url != NULL)); dReturn_if_fail ( url != NULL ); - style_attrs = *html->styleEngine->style (); - if (a_Capi_get_flags(url) & CAPI_IsCached) { - style_attrs.color = Color::create ( - HT2LT(html), - html->visited_color -/* - a_Color_vc(html->visited_color, - html->styleEngine->style()->color->getColor(), - html->link_color, - html->styleEngine->style()->backgroundColor->getColor() - ); -*/ - ); + html->styleEngine->setPseudoVisited (); } else { - style_attrs.color = Color::create (HT2LT(html), html->link_color); + html->styleEngine->setPseudoLink (); } + + props.set(CssProperty::PROPERTY_X_LINK, Html_set_new_link(html, &url)); + html->styleEngine->setNonCssHints (&props); - style_attrs.textDecoration |= TEXT_DECORATION_UNDERLINE; - style_attrs.x_link = Html_set_new_link(html, &url); - style_attrs.cursor = CURSOR_POINTER; - - style = Style::create (HT2LT(html), &style_attrs); - DW2TB(html->dw)->addText("[OBJECT]", style); - style->unref (); + DW2TB(html->dw)->addText("[OBJECT]", html->styleEngine->wordStyle ()); } a_Url_free(base_url); } |