diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-08 19:09:45 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-08 19:09:45 +0100 |
commit | 590b7605d413d89ffce2d98c4595d9262582be03 (patch) | |
tree | f4e6a673ecfac34fd1f529ad45222f77b12e3f85 /src/styleengine.cc | |
parent | 0cf74eb336dd646de2034b01ffc75b067020ff40 (diff) |
partly revert ed5ea857edc6 to fix coloring of <tr> elements
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r-- | src/styleengine.cc | 4 |
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); |