aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html.cc4
-rw-r--r--src/html_common.hh4
2 files changed, 1 insertions, 7 deletions
diff --git a/src/html.cc b/src/html.cc
index aeded4dc..d3955ece 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -439,8 +439,6 @@ DilloHtml::DilloHtml(BrowserWindow *p_bw, const DilloUrl *url,
stack->getRef(0)->textblock = NULL;
stack->getRef(0)->table = NULL;
stack->getRef(0)->ref_list_item = NULL;
- stack->getRef(0)->current_bg_color =
- styleEngine->style()->backgroundColor->getColor();
stack->getRef(0)->hand_over_break = false;
InFlags = IN_NONE;
@@ -1743,7 +1741,7 @@ static void Html_tag_open_body(DilloHtml *html, const char *tag, int tagsize)
a_Color_vc(html->visited_color,
html->styleEngine->style ()->color->getColor(),
html->non_css_link_color,
- S_TOP(html)->current_bg_color);
+ html->styleEngine->style()->backgroundColor->getColor());
}
S_TOP(html)->parse_mode = DILLO_HTML_PARSE_MODE_BODY;
diff --git a/src/html_common.hh b/src/html_common.hh
index 09fc83f4..369d2bf3 100644
--- a/src/html_common.hh
+++ b/src/html_common.hh
@@ -109,10 +109,6 @@ struct _DilloHtmlState {
/* This is used to align list items (especially in enumerated lists) */
dw::core::Widget *ref_list_item;
- /* This makes image processing faster than a function
- a_Dw_widget_get_background_color. */
- int32_t current_bg_color;
-
/* This is used for list items etc; if it is set to TRUE, breaks
have to be "handed over" (see Html_add_indented and
Html_eventually_pop_dw). */