diff src/styleengine.hh @ 1711:b27cf7eb15b6

fix last commit dw::core::style::Style must always hold the computed values of CSS properties, as those are inherited. The computed value of border-width is 0 if border-style is 'none', so avoid the combination of border-width != 0 and border-style 'none'. Refactor StyleEngine a bit.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 01 Oct 2010 23:28:13 +0200
parents 9225a90ad7dd
children 92b899247f72
line wrap: on
line diff
--- a/src/styleengine.hh	Fri Oct 01 16:12:16 2010 +0200
+++ b/src/styleengine.hh	Fri Oct 01 23:28:13 2010 +0200
@@ -35,6 +35,8 @@
 
       dw::core::style::Style *style0 (CssPropertyList *nonCssHints = NULL);
       dw::core::style::Style *wordStyle0 (CssPropertyList *nonCssHints = NULL);
+      void preprocessAttrs (dw::core::style::StyleAttrs *attrs);
+      void postprocessAttrs (dw::core::style::StyleAttrs *attrs);
       void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
       bool computeValue (int *dest, CssLength value,
                          dw::core::style::Font *font);