comparison src/styleengine.hh @ 615:d0694361ecd0

add workaround for table row coloring
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 28 Nov 2008 16:55:31 +0100
parents 4ff90b6242f9
children 4c9f7f03caf0
comparison
equal deleted inserted replaced
614:bbf774ce88d4 615:d0694361ecd0
9 private: 9 private:
10 class Node : public DoctreeNode { 10 class Node : public DoctreeNode {
11 public: 11 public:
12 dw::core::style::Style *style; 12 dw::core::style::Style *style;
13 const char *styleAttribute; 13 const char *styleAttribute;
14 bool inheritBackgroundColor;
14 }; 15 };
15 16
16 dw::core::Layout *layout; 17 dw::core::Layout *layout;
17 lout::misc::SimpleVector <Node> *stack; 18 lout::misc::SimpleVector <Node> *stack;
18 CssContext *cssContext; 19 CssContext *cssContext;
42 void setClass (const char *klass); 43 void setClass (const char *klass);
43 void setStyle (const char *style); 44 void setStyle (const char *style);
44 void endElement (int tag); 45 void endElement (int tag);
45 void setPseudo (const char *pseudo); 46 void setPseudo (const char *pseudo);
46 void setNonCssHints (CssPropertyList *nonCssHints); 47 void setNonCssHints (CssPropertyList *nonCssHints);
48 void inheritBackgroundColor ();
47 49
48 inline dw::core::style::Style *style () { 50 inline dw::core::style::Style *style () {
49 dw::core::style::Style *s = stack->getRef (stack->size () - 1)->style; 51 dw::core::style::Style *s = stack->getRef (stack->size () - 1)->style;
50 if (s) 52 if (s)
51 return s; 53 return s;