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.
This commit is contained in:
Jeff Muizelaar 2011-06-21 16:48:18 -04:00
Родитель dc4e02b763
Коммит d00fedc460
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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) {