diff 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
line wrap: on
line diff
--- a/src/styleengine.hh	Wed Oct 29 18:24:05 2008 +0100
+++ b/src/styleengine.hh	Wed Oct 29 19:03:43 2008 +0100
@@ -10,14 +10,19 @@
       class Node : public DoctreeNode {
          public:
             dw::core::style::Style *style;
+            CssPropertyList *nonCssProperties;
+            const char *styleAttribute;
       };
 
+      dw::core::Layout *layout;
       lout::misc::SimpleVector <Node> *stack;
+      CssContext *cssContext;
 
       dw::core::style::Style *style0 ();
+      void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
 
    public:
-      StyleEngine ();
+      StyleEngine (dw::core::Layout *layout);
       ~StyleEngine ();
    
       /* Doctree interface */