changeset 909:73260c7da32e

add CssProperty::type
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 05 Feb 2009 09:22:34 +0100
parents 742035273c87
children ca7c689d3873
files src/css.cc src/css.hh
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.cc	Tue Feb 03 09:25:47 2009 -0300
+++ b/src/css.cc	Thu Feb 05 09:22:34 2009 +0100
@@ -46,7 +46,7 @@
 
 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 () {
--- a/src/css.hh	Tue Feb 03 09:25:47 2009 -0300
+++ b/src/css.hh	Thu Feb 05 09:22:34 2009 +0100
@@ -157,7 +157,8 @@
          CSS_FONT_WEIGHT_MAX = 900,
       } FontWeightExtensions;
 
-      Name name;
+      short name;
+      short type;
       Value value;
 
       inline void free () {