diff src/styleengine.hh @ 1734:90feb0de4310

add StyleEngine::restyle()
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 11 Oct 2010 21:50:13 +0200
parents f39cfc38ea10
children 7974b38cc036
line wrap: on
line diff
--- a/src/styleengine.hh	Mon Oct 11 21:35:53 2010 +0200
+++ b/src/styleengine.hh	Mon Oct 11 21:50:13 2010 +0200
@@ -33,7 +33,7 @@
       Doctree *doctree;
       int importDepth;
 
-      dw::core::style::Style *style0 ();
+      dw::core::style::Style *style0 (int i);
       dw::core::style::Style *wordStyle0 ();
       void setNonCssHint(CssPropertyName name, CssValueType type,
                          CssPropertyValue value);
@@ -78,6 +78,7 @@
       }
       void inheritNonCssHints ();
       void clearNonCssHints ();
+      void restyle ();
       void inheritBackgroundColor (); /* \todo get rid of this somehow */
       dw::core::style::Style *backgroundStyle ();
 
@@ -86,7 +87,7 @@
          if (s)
             return s;
          else
-            return style0 ();
+            return style0 (stack->size () - 1);
       };
 
       inline dw::core::style::Style *wordStyle () {