animatedstyle: fail to create new style if timestamp goes backwards

With slowdown factor, we will only we be able to handle timestamps
that monotonically increase.
This commit is contained in:
Matt Watson
2016-03-22 00:54:11 -07:00
parent 2800b00e1d
commit 6a88ac3b4c

View File

@@ -467,6 +467,8 @@ gtk_css_animated_style_new_advance (GtkCssAnimatedStyle *source,
if (timestamp == 0)
return g_object_ref (source->style);
gtk_internal_return_val_if_fail (timestamp > source->current_time, NULL);
animations = NULL;
for (l = source->animations; l; l = l->next)
{