diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-02-06 19:00:51 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-02-06 19:00:51 +0100 |
commit | 2f4c8b74ebe3ccf0569eda982bbd2afc5473687b (patch) | |
tree | 50fec6031b11bd8e50188eabc350ac9c7a86bf25 /src/css.cc | |
parent | bc624c1fdb57712c71fa3c98b562924a5a27e32b (diff) |
add type to CSS properties
Diffstat (limited to 'src/css.cc')
-rw-r--r-- | src/css.cc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -30,7 +30,8 @@ CssPropertyList::~CssPropertyList () { getRef (i)->free (); } -void CssPropertyList::set (CssPropertyName name, CssPropertyValue value) { +void CssPropertyList::set (CssPropertyName name, CssValueType type, + CssPropertyValue value) { for (int i = 0; i < size (); i++) if (getRef (i)->name == name) { if (ownerOfStrings) @@ -41,12 +42,15 @@ void CssPropertyList::set (CssPropertyName name, CssPropertyValue value) { increase (); getRef (size () - 1)->name = name; + getRef (size () - 1)->type = type; getRef (size () - 1)->value = value; } void CssPropertyList::apply (CssPropertyList *props) { for (int i = 0; i < size (); i++) - props->set ((CssPropertyName) getRef (i)->name, getRef (i)->value); + props->set ((CssPropertyName) getRef (i)->name, + (CssValueType) getRef (i)->type, + getRef (i)->value); } void CssPropertyList::print () { |