aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-31 16:22:01 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-31 16:22:01 +0100
commit2cbedff838415a9344a6f8c08118967ac776dcc3 (patch)
tree63723b7e265d2dfb4f6428d136e69481a9a722ee /src/html.cc
parent603257bf19de8c74826f85cc6812322e54a7da3f (diff)
remove style from DilloHtmlState
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/html.cc b/src/html.cc
index 4b7ea9b2..257be896 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -469,7 +469,6 @@ DilloHtml::DilloHtml(BrowserWindow *p_bw, const DilloUrl *url,
stack = new misc::SimpleVector <DilloHtmlState> (16);
stack->increase();
- stack->getRef(0)->style = NULL;
stack->getRef(0)->table_cell_style = NULL;
stack->getRef(0)->parse_mode = DILLO_HTML_PARSE_MODE_INIT;
stack->getRef(0)->table_mode = DILLO_HTML_TABLE_MODE_NONE;
@@ -528,25 +527,11 @@ DilloHtml::DilloHtml(BrowserWindow *p_bw, const DilloUrl *url,
*/
void DilloHtml::initDw()
{
- StyleAttrs style_attrs;
- FontAttrs font_attrs;
-
dReturn_if_fail (dw == NULL);
/* Create the main widget */
dw = stack->getRef(0)->textblock = new Textblock (prefs.limit_text_width);
- /* Create a dummy font, attribute, and tag for the bottom of the stack. */
- font_attrs.name = prefs.vw_fontname;
- font_attrs.size = Html_level_to_fontsize(FontSizesBase);
- font_attrs.weight = 400;
- font_attrs.style = FONT_STYLE_NORMAL;
-
- style_attrs.initValues ();
- style_attrs.font = Font::create (HT2LT(this), &font_attrs);
- style_attrs.color = Color::createSimple (HT2LT(this), prefs.text_color);
- stack->getRef(0)->style = Style::create (HT2LT(this), &style_attrs);
-
stack->getRef(0)->table_cell_style = NULL;
/* Handle it when the user clicks on a link */