Revert "ngl: Remove a few redundant checks"

This reverts commit 4375f8e382.

These were not redundant after all, as pointed out by Timm.
This commit is contained in:
Matthias Clasen 2021-03-08 08:10:25 -05:00
parent d786e1d614
commit 5f664dbbbb

View File

@ -2805,6 +2805,9 @@ gsk_ngl_render_job_visit_blur_node (GskNglRenderJob *job,
g_assert (blur_radius > 0);
if (node_is_invisible (child))
return;
key.pointer = node;
key.pointer_is_child = FALSE;
key.scale_x = job->scale_x;
@ -2903,6 +2906,9 @@ gsk_ngl_render_job_visit_color_matrix_node (GskNglRenderJob *job,
GskNglRenderOffscreen offscreen = {0};
float offset[4];
if (node_is_invisible (child))
return;
offscreen.bounds = &node->bounds;
offscreen.reset_clip = TRUE;