mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
cssshadows: Fix extents computation
Someody busted this code a *lot*.
This commit is contained in:
parent
970f99615e
commit
e09b78f7f7
@ -361,8 +361,6 @@ _gtk_css_shadows_value_get_extents (const GtkCssValue *shadows,
|
||||
|
||||
g_return_if_fail (shadows->class == >K_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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user