summaryrefslogtreecommitdiff
path: root/src/styleengine.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-01 23:28:13 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-01 23:28:13 +0200
commit53997164c2e61962543a84eb14968b980e8d27a6 (patch)
tree3bd319ed04636a4bdb581deb58bca93562424e0d /src/styleengine.hh
parent47a9e5206c2f6d7775198533a70cb40013b467f2 (diff)
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.
Diffstat (limited to 'src/styleengine.hh')
-rw-r--r--src/styleengine.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/styleengine.hh b/src/styleengine.hh
index 66f28cee..5eafc7a6 100644
--- a/src/styleengine.hh
+++ b/src/styleengine.hh
@@ -35,6 +35,8 @@ class StyleEngine {
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);