diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-08 15:59:56 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-08 15:59:56 +0100 |
commit | eeef7a21f456f7b3e766e9cb782f29a1f43d64b3 (patch) | |
tree | 8aca653a279cf8ef7db6708e31e3665cc6679ed9 /src/html.cc | |
parent | 4391a4ec4043ebc417390214cd226a980db9df38 (diff) |
set CSS pseudo class in Html_tag_open_a()
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc index e840b46c..fcc769d0 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2470,6 +2470,13 @@ static void Html_tag_open_a(DilloHtml *html, const char *tag, int tagsize) url = a_Html_url_new(html, attrbuf, NULL, 0); dReturn_if_fail ( url != NULL ); + if (a_Capi_get_flags(url) & CAPI_IsCached) { + html->InVisitedLink = true; + html->styleEngine->setPseudoClass ("visited"); + } else { + html->styleEngine->setPseudoClass ("link"); + } + props.set (CssProperty::PROPERTY_X_LINK, Html_set_new_link(html, &url)); html->styleEngine->setNonCssProperties (&props); } |