cssshadows: Fix extents computation

Someody busted this code a *lot*.
This commit is contained in:
Benjamin Otte 2016-11-30 23:52:54 +01:00
parent 970f99615e
commit e09b78f7f7

View File

@ -361,8 +361,6 @@ _gtk_css_shadows_value_get_extents (const GtkCssValue *shadows,
g_return_if_fail (shadows->class == &GTK_CSS_VALUE_SHADOWS);
*border = b;
for (i = 0; i < shadows->len; i++)
{
shadow = shadows->values[i];
@ -373,5 +371,10 @@ _gtk_css_shadows_value_get_extents (const GtkCssValue *shadows,
gtk_css_shadow_value_get_extents (shadow, &sb);
b.top = MAX (b.top, sb.top);
b.right = MAX (b.right, sb.right);
b.bottom = MAX (b.bottom, sb.bottom);
b.left = MAX (b.left, sb.left);
}
*border = b;
}