diff src/styleengine.hh @ 1738:7974b38cc036

use background-color on <html>-element
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 11 Oct 2010 23:36:36 +0200
parents 90feb0de4310
children 6ff5d5aeb9a5
line wrap: on
line diff
--- a/src/styleengine.hh	Mon Oct 11 23:35:49 2010 +0200
+++ b/src/styleengine.hh	Mon Oct 11 23:36:36 2010 +0200
@@ -25,6 +25,7 @@
          dw::core::style::Style *style;
          dw::core::style::Style *wordStyle;
          bool inheritBackgroundColor;
+         DoctreeNode *doctreeNode;
       };
 
       dw::core::Layout *layout;
@@ -39,7 +40,7 @@
                          CssPropertyValue value);
       void preprocessAttrs (dw::core::style::StyleAttrs *attrs);
       void postprocessAttrs (dw::core::style::StyleAttrs *attrs);
-      void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
+      void apply (int i, dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
       bool computeValue (int *dest, CssLength value,
                          dw::core::style::Font *font);
       bool computeValue (int *dest, CssLength value,
@@ -81,6 +82,7 @@
       void restyle ();
       void inheritBackgroundColor (); /* \todo get rid of this somehow */
       dw::core::style::Style *backgroundStyle ();
+      dw::core::style::Color *backgroundColor ();
 
       inline dw::core::style::Style *style () {
          dw::core::style::Style *s = stack->getRef (stack->size () - 1)->style;