From 718357224eff5bba9557a17813d0a28e09d93552 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 10 Nov 2008 21:44:36 +0100 Subject: add strong, em, cite style --- src/css.cc | 7 +++++-- src/html.cc | 5 ----- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'src') 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); - // + // , 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); - // + // , , 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); //

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); } /* -- cgit v1.2.3