From fa3b62746db5c7c504b623d25e3f113f68077fcc Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Tue, 15 Aug 2017 13:03:53 +0900 Subject: [PATCH] ComputedPositiveInteger is an integer greater than or equal to 1. --- components/style/values/animated/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/values/animated/mod.rs b/components/style/values/animated/mod.rs index 8f505211ab6..6883f98ac09 100644 --- a/components/style/values/animated/mod.rs +++ b/components/style/values/animated/mod.rs @@ -172,7 +172,7 @@ impl ToAnimatedValue for ComputedPositiveInteger { #[inline] fn from_animated_value(animated: Self::AnimatedValue) -> Self { - max(animated.0, 0).into() + max(animated.0, 1).into() } }