From 89e817aa790149accce540d9d8f9df045e4c9039 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Tue, 21 Jun 2011 16:48:18 -0400 Subject: [PATCH] Bug 660662. Remove unnecessary floor in nsNativeTheme::QueueAnimatedContentForRefresh. r=bent Positive numbers are already floored when truncated so this should have no semantic change, and avoids some implicit conversions. --- widget/src/xpwidgets/nsNativeTheme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/xpwidgets/nsNativeTheme.cpp b/widget/src/xpwidgets/nsNativeTheme.cpp index a44e0b8a3aa..ad8f03c02dd 100644 --- a/widget/src/xpwidgets/nsNativeTheme.cpp +++ b/widget/src/xpwidgets/nsNativeTheme.cpp @@ -518,7 +518,7 @@ nsNativeTheme::QueueAnimatedContentForRefresh(nsIContent* aContent, NS_ASSERTION(aMinimumFrameRate <= 1000, "aMinimumFrameRate must be less than 1000!"); - PRUint32 timeout = PRUint32(NS_floor(1000 / aMinimumFrameRate)); + PRUint32 timeout = 1000 / aMinimumFrameRate; timeout = NS_MIN(mAnimatedContentTimeout, timeout); if (!mAnimatedContentTimer) {