CounterBound::Integer made to store an Integer

This commit is contained in:
Nupur Baghel 2018-03-15 13:37:09 +05:30
parent 8e6cfbca47
commit 307858bf69
2 changed files with 11 additions and 17 deletions

View file

@ -326,7 +326,7 @@ impl ToNsCssValue for counter_style::Ranges {
nscssvalue.set_pair_list(self.0.into_iter().map(|range| {
fn set_bound(bound: CounterBound, nscssvalue: &mut nsCSSValue) {
if let CounterBound::Integer(finite) = bound {
nscssvalue.set_integer(finite)
nscssvalue.set_integer(finite.value())
} else {
nscssvalue.set_enum(structs::NS_STYLE_COUNTER_RANGE_INFINITE as i32)
}