Commit 7cf2adfe authored by Benjamin Otte's avatar Benjamin Otte

cssvalue: Always consider values equal to themselves

parent bdd64dc0
......@@ -103,6 +103,9 @@ _gtk_css_value_equal (const GtkCssValue *value1,
g_return_val_if_fail (value1 != NULL, FALSE);
g_return_val_if_fail (value2 != NULL, FALSE);
if (value1 == value2)
return TRUE;
if (value1->class != value2->class)
return FALSE;
......@@ -113,7 +116,8 @@ gboolean
_gtk_css_value_equal0 (const GtkCssValue *value1,
const GtkCssValue *value2)
{
if (value1 == NULL && value2 == NULL)
/* Inclues both values being NULL */
if (value1 == value2)
return TRUE;
if (value1 == NULL || value2 == NULL)
......
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