Skip to content

Commit 99523b8

Browse files
author
Stanca Serban
committed
Backed out changeset 04e40870ce3e (bug 1941838) for causing mochitests failures in 1941838.html.
1 parent 41f9f7e commit 99523b8

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

webrender/src/quad.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -450,15 +450,6 @@ pub fn prepare_quad(
450450

451451
let rect = int_rect.to_f32();
452452

453-
// At extreme scales the rect can round to zero size due to
454-
// f32 precision, causing a panic in new_dynamic, so just
455-
// skip segments that would produce zero size tasks.
456-
// https://bugzilla.mozilla.org/show_bug.cgi?id=1941838#c13
457-
let int_rect_size = int_rect.round().to_i32().size();
458-
if int_rect_size.is_empty() {
459-
continue;
460-
}
461-
462453
if is_direct {
463454
scratch.quad_direct_segments.push(QuadSegment { rect: rect.cast_unit(), task_id: RenderTaskId::INVALID });
464455
} else {
@@ -489,7 +480,7 @@ pub fn prepare_quad(
489480

490481
let task_id = add_render_task_with_mask(
491482
&pattern,
492-
int_rect_size,
483+
int_rect.round().to_i32().size(),
493484
rect.min,
494485
clip_chain.clips_range,
495486
prim_spatial_node_index,

0 commit comments

Comments
 (0)