{
g_signal_emit (cssnode, cssnode_signals[STYLE_CHANGED], 0, &change);
}
- else if (cssnode->style != style &&
- (GTK_IS_CSS_ANIMATED_STYLE (cssnode->style) || GTK_IS_CSS_ANIMATED_STYLE (style)))
+ else if (GTK_IS_CSS_ANIMATED_STYLE (cssnode->style) || GTK_IS_CSS_ANIMATED_STYLE (style))
{
/* This is when animations are starting/stopping but they didn't change any CSS this frame */
g_set_object (&cssnode->style, style);
}
+ else if (gtk_css_static_style_get_change (gtk_css_style_get_static_style (cssnode->style)) !=
+ gtk_css_static_style_get_change (gtk_css_style_get_static_style (style)))
+ {
+ /* This is when we recomputed the change flags but the style didn't change */
+ g_set_object (&cssnode->style, style);
+ }
gtk_css_style_change_finish (&change);