From 51b398b960a03cf3822497fa491ea08a865e2038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 29 Aug 2020 12:03:20 +0200 Subject: [PATCH] rendernodes: Whitespace --- gsk/gskrendernodeimpl.c | 70 ++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index c141998ff1..c89da757ad 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -804,13 +804,13 @@ has_empty_clip (cairo_t *cr) } static void -draw_shadow (cairo_t *cr, - gboolean inset, - const GskRoundedRect*box, - const GskRoundedRect*clip_box, - float radius, - const GdkRGBA *color, - GskBlurFlags blur_flags) +draw_shadow (cairo_t *cr, + gboolean inset, + const GskRoundedRect *box, + const GskRoundedRect *clip_box, + float radius, + const GdkRGBA *color, + GskBlurFlags blur_flags) { cairo_t *shadow_cr; @@ -1129,31 +1129,31 @@ gsk_inset_shadow_node_draw (GskRenderNode *node, /* First do the corners of box */ for (i = 0; i < 4; i++) - { - cairo_save (cr); + { + cairo_save (cr); /* Always clip with remaining to ensure we never draw any area twice */ gdk_cairo_region (cr, remaining); cairo_clip (cr); - draw_shadow_corner (cr, TRUE, &box, &clip_box, self->blur_radius, &self->color, i, &r); - cairo_restore (cr); + draw_shadow_corner (cr, TRUE, &box, &clip_box, self->blur_radius, &self->color, i, &r); + cairo_restore (cr); - /* We drew the region, remove it from remaining */ - cairo_region_subtract_rectangle (remaining, &r); - } + /* We drew the region, remove it from remaining */ + cairo_region_subtract_rectangle (remaining, &r); + } /* Then the sides */ for (i = 0; i < 4; i++) - { - cairo_save (cr); + { + cairo_save (cr); /* Always clip with remaining to ensure we never draw any area twice */ gdk_cairo_region (cr, remaining); cairo_clip (cr); - draw_shadow_side (cr, TRUE, &box, &clip_box, self->blur_radius, &self->color, i, &r); - cairo_restore (cr); + draw_shadow_side (cr, TRUE, &box, &clip_box, self->blur_radius, &self->color, i, &r); + cairo_restore (cr); - /* We drew the region, remove it from remaining */ - cairo_region_subtract_rectangle (remaining, &r); - } + /* We drew the region, remove it from remaining */ + cairo_region_subtract_rectangle (remaining, &r); + } /* Then the rest, which needs no blurring */ @@ -1431,31 +1431,31 @@ gsk_outset_shadow_node_draw (GskRenderNode *node, /* First do the corners of box */ for (i = 0; i < 4; i++) - { - cairo_save (cr); + { + cairo_save (cr); /* Always clip with remaining to ensure we never draw any area twice */ gdk_cairo_region (cr, remaining); cairo_clip (cr); - draw_shadow_corner (cr, FALSE, &box, &clip_box, self->blur_radius, &self->color, i, &r); - cairo_restore (cr); + draw_shadow_corner (cr, FALSE, &box, &clip_box, self->blur_radius, &self->color, i, &r); + cairo_restore (cr); - /* We drew the region, remove it from remaining */ - cairo_region_subtract_rectangle (remaining, &r); - } + /* We drew the region, remove it from remaining */ + cairo_region_subtract_rectangle (remaining, &r); + } /* Then the sides */ for (i = 0; i < 4; i++) - { - cairo_save (cr); + { + cairo_save (cr); /* Always clip with remaining to ensure we never draw any area twice */ gdk_cairo_region (cr, remaining); cairo_clip (cr); - draw_shadow_side (cr, FALSE, &box, &clip_box, self->blur_radius, &self->color, i, &r); - cairo_restore (cr); + draw_shadow_side (cr, FALSE, &box, &clip_box, self->blur_radius, &self->color, i, &r); + cairo_restore (cr); - /* We drew the region, remove it from remaining */ - cairo_region_subtract_rectangle (remaining, &r); - } + /* We drew the region, remove it from remaining */ + cairo_region_subtract_rectangle (remaining, &r); + } /* Then the rest, which needs no blurring */