diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-01 23:28:13 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-10-01 23:28:13 +0200 |
commit | 53997164c2e61962543a84eb14968b980e8d27a6 (patch) | |
tree | 3bd319ed04636a4bdb581deb58bca93562424e0d /dw | |
parent | 47a9e5206c2f6d7775198533a70cb40013b467f2 (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 'dw')
-rw-r--r-- | dw/style.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/style.cc b/dw/style.cc index f71543f7..cc58ce28 100644 --- a/dw/style.cc +++ b/dw/style.cc @@ -47,7 +47,7 @@ void StyleAttrs::initValues () backgroundColor = NULL; width = height = lineHeight = LENGTH_AUTO; margin.setVal (0); - borderWidth.setVal (2); + borderWidth.setVal (0); padding.setVal (0); setBorderColor (NULL); setBorderStyle (BORDER_NONE); @@ -75,7 +75,7 @@ void StyleAttrs::resetValues () height = LENGTH_AUTO; margin.setVal (0); - borderWidth.setVal (2); + borderWidth.setVal (0); padding.setVal (0); setBorderColor (NULL); setBorderStyle (BORDER_NONE); |