changeset 1117:483f789f6cae

rm current_bg_color
author corvid <corvid@lavabit.com>
date Fri, 22 May 2009 09:09:21 +0200
parents 1e256c48b96b
children e49866fe3be6
files src/html.cc src/html_common.hh
diffstat 2 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/html.cc	Thu May 21 21:51:52 2009 +0000
+++ b/src/html.cc	Fri May 22 09:09:21 2009 +0200
@@ -439,8 +439,6 @@
    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 @@
          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;
--- a/src/html_common.hh	Thu May 21 21:51:52 2009 +0000
+++ b/src/html_common.hh	Fri May 22 09:09:21 2009 +0200
@@ -109,10 +109,6 @@
    /* 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). */