summaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-08 19:09:45 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-08 19:09:45 +0100
commit590b7605d413d89ffce2d98c4595d9262582be03 (patch)
treef4e6a673ecfac34fd1f529ad45222f77b12e3f85 /src/styleengine.cc
parent0cf74eb336dd646de2034b01ffc75b067020ff40 (diff)
partly revert ed5ea857edc6 to fix coloring of <tr> elements
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 7d1eb773..3831fb3b 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -352,6 +352,10 @@ Style * StyleEngine::style0 (CssPropertyList *nonCssProperties) {
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);