зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
dc4e02b763
Коммит
d00fedc460
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче