1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Origin: http://groups.google.com/group/tkhtml3/browse_thread/thread/74ccb54074bec7d5
Description: Fix the problem that tkhtml seems to ignore 'background-color'
on tbody-tags.
--- a/src/htmlprop.c
+++ b/src/htmlprop.c
@@ -2045,6 +2045,12 @@ HtmlComputedValuesInit(pTree, pNode, pParent, p)
memcpy(&p->fontKey, pValues->fFont->pKey, sizeof(HtmlFontKey));
pValues->mask =
(pValues->mask & iCopyMask) | (pParentValues->mask & !iCopyMask);
+ /* inherit background from parent */
+ p->values.cBackgroundColor->nRef++;
+ decrementColorRef(pTree, p->values.cBackgroundColor );
+
+ p->values.cBackgroundColor =
+ ((HtmlElementNode *)pParent)->pPropertyValues->cBackgroundColor;
}
p->values.cColor->nRef++;
|