mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
CounterBound::Integer made to store an Integer
This commit is contained in:
parent
8e6cfbca47
commit
307858bf69
2 changed files with 11 additions and 17 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue