Commit 871d782e authored by Benjamin Otte's avatar Benjamin Otte

css: Don't special-case fill-mode in 'animation'

I have no idea why it was special cased when parsing the 'animation'
shorthand, but it caused crashes.

So remove the special case.
parent b02837b2
......@@ -766,21 +766,19 @@ parse_animation (GtkCssShorthandProperty *shorthand,
GtkCssParser *parser)
{
GtkCssValue *step_values[7];
GPtrArray *arrays[6];
GPtrArray *arrays[7];
guint i;
for (i = 0; i < 6; i++)
for (i = 0; i < 7; i++)
{
arrays[i] = g_ptr_array_new ();
step_values[i] = NULL;
}
step_values[6] = NULL;
do {
if (!parse_one_animation (shorthand, step_values, parser))
{
for (i = 0; i < 6; i++)
for (i = 0; i < 7; i++)
{
g_ptr_array_set_free_func (arrays[i], (GDestroyNotify) _gtk_css_value_unref);
g_ptr_array_unref (arrays[i]);
......@@ -788,7 +786,7 @@ parse_animation (GtkCssShorthandProperty *shorthand,
return FALSE;
}
for (i = 0; i < 6; i++)
for (i = 0; i < 7; i++)
{
if (step_values[i] == NULL)
{
......@@ -802,14 +800,12 @@ parse_animation (GtkCssShorthandProperty *shorthand,
}
} while (_gtk_css_parser_try (parser, ",", TRUE));
for (i = 0; i < 6; i++)
for (i = 0; i < 7; i++)
{
values[i] = _gtk_css_array_value_new_from_array ((GtkCssValue **) arrays[i]->pdata, arrays[i]->len);
g_ptr_array_unref (arrays[i]);
}
values[6] = step_values[6];
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment