aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-05 09:22:34 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-05 09:22:34 +0100
commit4eb1e41793ec65d83bb41f58388edee610e3db8e (patch)
treed843d43091590f5d2a7f605dc6400fa076364020 /src
parent0408b4e69fdc3dbfaa48a325028315098c4cad70 (diff)
add CssProperty::type
Diffstat (limited to 'src')
-rw-r--r--src/css.cc2
-rw-r--r--src/css.hh3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/css.cc b/src/css.cc
index b7e34398..8ec1f0d8 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -46,7 +46,7 @@ void CssPropertyList::set (CssProperty::Name name, CssProperty::Value value) {
void CssPropertyList::apply (CssPropertyList *props) {
for (int i = 0; i < size (); i++)
- props->set (getRef (i)->name, getRef (i)->value);
+ props->set ((CssProperty::Name) getRef (i)->name, getRef (i)->value);
}
void CssPropertyList::print () {
diff --git a/src/css.hh b/src/css.hh
index 805f2c5c..487aaef6 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -157,7 +157,8 @@ class CssProperty {
CSS_FONT_WEIGHT_MAX = 900,
} FontWeightExtensions;
- Name name;
+ short name;
+ short type;
Value value;
inline void free () {