mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
51cf0526d8
In TimeStamp_windows.cpp and TimeStamp_darwin.cpp, in TimeStamp::FromMilliseconds we cast the floating-point number of ticks to a 64-bit integer before passing to TimeStamp::FromTicks(int64_t). This means that we skip the check for integer overflow performed by TimeStamp::FromTicks(double). This patch simply removes that cast so that we perform overflow checking. It also adds an assertion to ElementAnimation since this is one place where the lack of overflow checking was producing a negative value where it should not.
19 lines
329 B
HTML
19 lines
329 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<script>
|
|
|
|
function boom()
|
|
{
|
|
document.documentElement.style.animation = "137438953471s bounce";
|
|
document.documentElement.offsetHeight;
|
|
document.documentElement.style.animationIterationCount = "infinite";
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="boom();"></body>
|
|
</html>
|