comparison src/styleengine.hh @ 509:fd2454cd0120

pass Layout to StyleEngine
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 29 Oct 2008 19:03:43 +0100
parents 03de2284bfa6
children 850c23b07f91 ca0b92b40dfc
comparison
equal deleted inserted replaced
508:61d1a4c74690 509:fd2454cd0120
8 class StyleEngine : public Doctree { 8 class StyleEngine : public Doctree {
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 CssPropertyList *nonCssProperties;
14 const char *styleAttribute;
13 }; 15 };
14 16
17 dw::core::Layout *layout;
15 lout::misc::SimpleVector <Node> *stack; 18 lout::misc::SimpleVector <Node> *stack;
19 CssContext *cssContext;
16 20
17 dw::core::style::Style *style0 (); 21 dw::core::style::Style *style0 ();
22 void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
18 23
19 public: 24 public:
20 StyleEngine (); 25 StyleEngine (dw::core::Layout *layout);
21 ~StyleEngine (); 26 ~StyleEngine ();
22 27
23 /* Doctree interface */ 28 /* Doctree interface */
24 inline const DoctreeNode *top () { 29 inline const DoctreeNode *top () {
25 return stack->getRef (stack->size () - 1); 30 return stack->getRef (stack->size () - 1);