mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b118cf06d3
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>
|