Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in dom/animation/ r=hiro

Depends on D43779

Differential Revision: https://phabricator.services.mozilla.com/D43780

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sylvestre Ledru 2019-08-28 21:31:46 +00:00
parent 843fae6aee
commit acfbfdc9af

View File

@ -182,9 +182,9 @@ ComputedTiming AnimationEffect::GetComputedTimingAt(
// Determine the 0-based index of the current iteration.
// https://drafts.csswg.org/web-animations/#current-iteration
result.mCurrentIteration =
(result.mIterations >= UINT64_MAX &&
(result.mIterations >= double(UINT64_MAX) &&
result.mPhase == ComputedTiming::AnimationPhase::After) ||
overallProgress >= UINT64_MAX
overallProgress >= double(UINT64_MAX)
? UINT64_MAX // In GetComputedTimingDictionary(),
// we will convert this into Infinity
: static_cast<uint64_t>(overallProgress);