Backed out changeset 95eeb31a4edd (bug 1730695) for causing crashtest failures on 1730695.html. CLOSED TREE

This commit is contained in:
Marian-Vasile Laza 2021-10-12 04:18:58 +03:00
parent ac6c5e156e
commit b59ea8ad55
3 changed files with 1 additions and 27 deletions

View File

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script>
document.addEventListener("DOMContentLoaded", () => {
const canvas = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas")
document.documentElement.appendChild(canvas)
const context = canvas.getContext("2d")
context.arcTo(4.883000064524857e+307, 1.546661088875107e+308, 2.559553941389527e+307, 1.0153516333341025e+308, 9.633835430115978e+307)
canvas.animate([{
"scale": "1090282421 55%"
}], 1000)
})
setTimeout('document.documentElement.className = ""', 300);
</script>
</head>
</html>

View File

@ -207,4 +207,3 @@ load 1699013.html
load 1700232.html
load 1704321-1.html
load 1702638.html
load 1730695.html

View File

@ -4371,7 +4371,6 @@ impl Renderer {
if can_use_partial_present {
let mut combined_dirty_rect = DeviceRect::zero();
let fb_rect = DeviceRect::from_size(draw_target_dimensions.to_f32());
// Work out how many dirty rects WR produced, and if that's more than
// what the device supports.
@ -4383,14 +4382,7 @@ impl Renderer {
&tile.local_dirty_rect,
tile.transform_index,
);
// In pathological cases where a tile is extremely zoomed, it
// may end up with device coords outside the range of an i32,
// so clamp it to the frame buffer rect here, before it gets
// casted to an i32 rect below.
if let Some(dirty_rect) = dirty_rect.intersection(&fb_rect) {
combined_dirty_rect = combined_dirty_rect.union(&dirty_rect);
}
combined_dirty_rect = combined_dirty_rect.union(&dirty_rect);
}
let combined_dirty_rect = combined_dirty_rect.round();