changeset 657:ccaf77df8811

partly revert ed5ea857edc6 to fix coloring of <tr> elements
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 08 Dec 2008 19:09:45 +0100
parents 5394d3d66a3f
children ea961706be66
files src/styleengine.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/styleengine.cc	Mon Dec 08 18:38:11 2008 +0100
+++ b/src/styleengine.cc	Mon Dec 08 19:09:45 2008 +0100
@@ -352,6 +352,10 @@
    StyleAttrs attrs = *stack->getRef (stack->size () - 2)->style;
    // reset values that are not inherited according to CSS
    attrs.resetValues ();
+
+   if (stack->getRef (stack->size () - 2)->inheritBackgroundColor)
+      attrs.backgroundColor =
+         stack->getRef (stack->size () - 2)->style->backgroundColor;
   
    cssContext->apply (&props, this, tagStyleProps, nonCssProperties);