aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-10 21:44:36 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-10 21:44:36 +0100
commit718357224eff5bba9557a17813d0a28e09d93552 (patch)
treee787715e18c6a6c6681ecad80546bb0a6e4967ba /src
parent32c48f682dca94e500b6bd7663d59605b6fe8de1 (diff)
add strong, em, cite style
Diffstat (limited to 'src')
-rw-r--r--src/css.cc7
-rw-r--r--src/html.cc5
2 files changed, 5 insertions, 7 deletions
diff --git a/src/css.cc b/src/css.cc
index d93efe4e..aa393c97 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -137,15 +137,18 @@ CssStyleSheet * CssContext::buildUserAgentStyle () {
props->set (CssProperty::CSS_PROPERTY_CURSOR, CURSOR_POINTER);
s->addRule (new CssSelector(-1, "visited", NULL), props);
- // <b>
+ // <b>, <strong>
props = new CssPropertyList ();
props->set (CssProperty::CSS_PROPERTY_FONT_WEIGHT, CssProperty::CSS_FONT_WEIGHT_BOLDER);
s->addRule (new CssSelector(a_Html_tag_index("b"), NULL, NULL), props);
+ s->addRule (new CssSelector(a_Html_tag_index("strong"), NULL, NULL), props);
- // <i>
+ // <i>, <em>, <cite>
props = new CssPropertyList ();
props->set (CssProperty::CSS_PROPERTY_FONT_STYLE, FONT_STYLE_ITALIC);
s->addRule (new CssSelector(a_Html_tag_index("i"), NULL, NULL), props);
+ s->addRule (new CssSelector(a_Html_tag_index("em"), NULL, NULL), props);
+ s->addRule (new CssSelector(a_Html_tag_index("cite"), NULL, NULL), props);
// <h1>
props = new CssPropertyList ();
diff --git a/src/html.cc b/src/html.cc
index 95e74342..b618fa96 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -1950,7 +1950,6 @@ static void Html_tag_open_abbr(DilloHtml *html, const char *tag, int tagsize)
*/
static void Html_tag_open_b(DilloHtml *html, const char *tag, int tagsize)
{
- a_Html_set_top_font(html, NULL, 0, 1, 1);
}
/*
@@ -1958,7 +1957,6 @@ static void Html_tag_open_b(DilloHtml *html, const char *tag, int tagsize)
*/
static void Html_tag_open_strong(DilloHtml *html, const char *tag, int tagsize)
{
- a_Html_set_top_font(html, NULL, 0, 1, 1);
}
/*
@@ -1966,7 +1964,6 @@ static void Html_tag_open_strong(DilloHtml *html, const char *tag, int tagsize)
*/
static void Html_tag_open_i(DilloHtml *html, const char *tag, int tagsize)
{
- a_Html_set_top_font(html, NULL, 0, 2, 2);
}
/*
@@ -1974,7 +1971,6 @@ static void Html_tag_open_i(DilloHtml *html, const char *tag, int tagsize)
*/
static void Html_tag_open_em(DilloHtml *html, const char *tag, int tagsize)
{
- a_Html_set_top_font(html, NULL, 0, 2, 2);
}
/*
@@ -1982,7 +1978,6 @@ static void Html_tag_open_em(DilloHtml *html, const char *tag, int tagsize)
*/
static void Html_tag_open_cite(DilloHtml *html, const char *tag, int tagsize)
{
- a_Html_set_top_font(html, NULL, 0, 2, 2);
}
/*