aboutsummaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-06 19:00:51 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-06 19:00:51 +0100
commit2f4c8b74ebe3ccf0569eda982bbd2afc5473687b (patch)
tree50fec6031b11bd8e50188eabc350ac9c7a86bf25 /src/css.cc
parentbc624c1fdb57712c71fa3c98b562924a5a27e32b (diff)
add type to CSS properties
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/css.cc b/src/css.cc
index 3a3c8ccf..b9f0cd40 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -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 () {