summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-12-15 01:58:11 +0100
committerBenjamin Otte <otte@redhat.com>2015-01-07 14:26:47 +0100
commit980923c761a7f38197817cfa9168e8b78f1a73ac (patch)
tree08b47d43abddd20c932dcf2d477655094ce43230 /gtk/gtkstylecontext.c
parent0bab285fe0f5ce4accec8b941742306ef54f4655 (diff)
downloadgtk+-980923c761a7f38197817cfa9168e8b78f1a73ac.tar.gz
cssanimatedstyle: Merge two functions
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index bc79821370..9ed0b448a8 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -2838,17 +2838,14 @@ _gtk_style_context_validate (GtkStyleContext *context,
style_info_set_values (info, NULL);
values = style_values_lookup (context);
- values = gtk_css_animated_style_new (values);
-
- if (values != current)
- gtk_css_animated_style_create_animations (GTK_CSS_ANIMATED_STYLE (values),
- priv->parent ? style_values_lookup (priv->parent) : NULL,
- timestamp,
- GTK_STYLE_PROVIDER_PRIVATE (priv->cascade),
- priv->scale,
- gtk_style_context_should_create_transitions (context)
- ? current
- : NULL);
+
+ values = gtk_css_animated_style_new (values,
+ priv->parent ? style_values_lookup (priv->parent) : NULL,
+ timestamp,
+ GTK_STYLE_PROVIDER_PRIVATE (priv->cascade),
+ priv->scale,
+ gtk_style_context_should_create_transitions (context) ? current : NULL);
+
if (gtk_css_animated_style_is_static (GTK_CSS_ANIMATED_STYLE (values)))
{
change &= ~GTK_CSS_CHANGE_ANIMATE;