diff src/styleengine.hh @ 1035:474b9814a8fa

support CSS @import directive
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 08 Apr 2009 16:33:02 +0200
parents 36d9fee90159
children 4ed33b76809c
line wrap: on
line diff
--- a/src/styleengine.hh	Sat Apr 04 04:00:57 2009 +0000
+++ b/src/styleengine.hh	Wed Apr 08 16:33:02 2009 +0200
@@ -1,6 +1,8 @@
 #ifndef __STYLEENGINE_HH__
 #define __STYLEENGINE_HH__
 
+class StyleEngine;
+
 #include "dw/core.hh"
 #include "doctree.hh"
 #include "css.hh"
@@ -20,6 +22,7 @@
       lout::misc::SimpleVector <Node> *stack;
       CssContext *cssContext;
       int num;
+      int importDepth;
 
       dw::core::style::Style *style0 (CssPropertyList *nonCssHints = NULL);
       dw::core::style::Style *wordStyle0 (CssPropertyList *nonCssHints = NULL);
@@ -46,7 +49,7 @@
             return NULL;
       };
 
-      void parse (const char *buf, int buflen, CssOrigin origin);
+      void parse (DilloHtml *html, DilloUrl *url, const char *buf, int buflen, CssOrigin origin);
       void startElement (int tag);
       void startElement (const char *tagname);
       void setId (const char *id);