cssvalue: Remove typechecks

This path is more than hot and those type checks ruin any kind of real
life profiling.
This commit is contained in:
Timm Bäder 2018-05-10 13:56:54 +02:00
parent 90ac5f3755
commit caaa3f8200

View File

@ -88,12 +88,6 @@ _gtk_css_value_compute (GtkCssValue *value,
GtkCssStyle *style,
GtkCssStyle *parent_style)
{
gtk_internal_return_val_if_fail (value != NULL, NULL);
gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER (provider), NULL);
gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE (style), NULL);
gtk_internal_return_val_if_fail (parent_style == NULL || GTK_IS_CSS_STYLE (parent_style), NULL);
return value->class->compute (value, property_id, provider, style, parent_style);
}