mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 02:40:07 +00:00
GtkCssProvider: Immediately bail out if GType couldn't be resolved.
This commit is contained in:
parent
9ebbc7b5c5
commit
85dbc71921
@ -444,14 +444,16 @@ compare_selector (GtkWidgetPath *path,
|
||||
match = compare_selector_element (path, i, elem, &elem_score);
|
||||
i++;
|
||||
|
||||
if (!match && elem->combinator == COMBINATOR_DESCENDANT)
|
||||
if (!match &&
|
||||
elem->elem_type != SELECTOR_TYPE_NAME &&
|
||||
elem->combinator == COMBINATOR_DESCENDANT)
|
||||
{
|
||||
/* With descendant combinators there may
|
||||
* be intermediate chidren in the hierarchy
|
||||
*/
|
||||
match = TRUE;
|
||||
}
|
||||
else
|
||||
else if (match)
|
||||
elements = elements->next;
|
||||
|
||||
if (match)
|
||||
|
Loading…
Reference in New Issue
Block a user