[GTK3] Don't invalidate style content for missing widgets

This commit is contained in:
trav90 2018-04-06 11:03:35 -05:00 committed by Roy Tam
commit a144db2754

View file

@ -626,6 +626,10 @@ GetWidget(WidgetNodeType aWidgetType)
GtkWidget* widget = sWidgetStorage[aWidgetType];
if (!widget) {
widget = CreateWidget(aWidgetType);
// Some widgets (MOZ_GTK_COMBOBOX_SEPARATOR for instance) may not be
// available or implemented.
if (!widget)
return nullptr;
// In GTK versions prior to 3.18, automatic invalidation of style contexts
// for widgets was delayed until the next resize event. Gecko however,
// typically uses the style context before the resize event runs and so an