mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
ComputedPositiveInteger is an integer greater than or equal to 1.
This commit is contained in:
parent
19d498f01e
commit
fa3b62746d
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ impl ToAnimatedValue for ComputedPositiveInteger {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from_animated_value(animated: Self::AnimatedValue) -> Self {
|
fn from_animated_value(animated: Self::AnimatedValue) -> Self {
|
||||||
max(animated.0, 0).into()
|
max(animated.0, 1).into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue