rendernodeparser: Fix mask mode handling

I had forgotten inverted-luminance, and also
to print an error.
This commit is contained in:
Matthias Clasen 2023-02-14 20:25:01 -05:00
parent 40e7a265a7
commit 951db28f71

View File

@ -691,6 +691,7 @@ static const struct
{ GSK_MASK_MODE_ALPHA, "alpha" },
{ GSK_MASK_MODE_INVERTED_ALPHA, "inverted-alpha" },
{ GSK_MASK_MODE_LUMINANCE, "luminance" },
{ GSK_MASK_MODE_INVERTED_LUMINANCE, "inverted-luminance" },
};
static const char *
@ -720,6 +721,8 @@ parse_mask_mode (GtkCssParser *parser,
}
}
gtk_css_parser_error_syntax (parser, "Not a valid mask mode.");
return FALSE;
}