mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
1a77e72a5b
commit
89e817aa79
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user