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/cssparser.cc | |
parent | bc624c1fdb57712c71fa3c98b562924a5a27e32b (diff) |
add type to CSS properties
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r-- | src/cssparser.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index 68d06a0b..31cad941 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -870,9 +870,9 @@ static void Css_parse_declaration(CssParser * parser, Css_parse_value(parser, prop, type, &val)) { weight = Css_parse_weight(parser); if (weight && importantProps) - importantProps->set(prop, val); + importantProps->set(prop, type, val); else - props->set(prop, val); + props->set(prop, type, val); } } } else { @@ -916,10 +916,10 @@ static void Css_parse_declaration(CssParser * parser, if (weight && importantProps) importantProps-> set(Css_shorthand_info[sh_index]. - properties[i], val); + properties[i], type, val); else props->set(Css_shorthand_info[sh_index]. - properties[i], val); + properties[i], type, val); } } } while (found); @@ -947,11 +947,13 @@ static void Css_parse_declaration(CssParser * parser, if (weight && importantProps) importantProps->set(Css_shorthand_info[sh_index] .properties[i], + type, dir_vals[dir_set[n - 1] [i]]); else props->set(Css_shorthand_info[sh_index] .properties[i], + type, dir_vals[dir_set[n - 1][i]]); } else MSG_CSS("no values for shorthand property '%s'\n", @@ -977,10 +979,10 @@ static void Css_parse_declaration(CssParser * parser, if (weight && importantProps) importantProps-> set(Css_shorthand_info[sh_index]. - properties[j * 3 + i], val); + properties[j * 3 + i], type, val); else props->set(Css_shorthand_info[sh_index]. - properties[j * 3 + i], val); + properties[j * 3 + i], type, val); } } } while (found); |