if (gtk_css_parser_try_ident (parser, "initial"))
{ /* the initial value can be explicitly specified with the *‘initial’keywordwhichallpropertiesaccept.
*/ return _gtk_css_initial_value_new ();
} elseif (gtk_css_parser_try_ident (parser, "inherit"))
{ /* All properties accept the ‘inherit’ value which *explicitlyspecifiesthatthevaluewillbedetermined *byinheritance.The‘inherit’valuecanbeusedto *strengtheninheritedvaluesinthecascade,anditcan *alsobeusedonpropertiesthatarenotnormallyinherited.
*/ return _gtk_css_inherit_value_new ();
} elseif (gtk_css_parser_try_ident (parser, "unset"))
{ /* If the cascaded value of a property is the unset keyword, *thenifitisaninheritedproperty,thisistreatedas *inherit,andifitisnot,thisistreatedasinitial.
*/ return _gtk_css_unset_value_new ();
} elseif (!shorthand->parse (shorthand, data, parser))
{ for (i = 0; i < n_props; i++)
{ if (data[i] != NULL)
gtk_css_value_unref (data[i]);
} return NULL;
}
/* All values that aren't set by the parse func are set to their *defaultvalueshere.
* XXX: Is the default always initial or can it be inherit? */ for (i = 0; i < n_props; i++)
{ if (data[i] == NULL)
data[i] = _gtk_css_initial_value_new ();
}
result = _gtk_css_array_value_new_from_array (data, n_props);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.