mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[GTK3] Don't invalidate style content for missing widgets
This commit is contained in:
parent
752c6892c2
commit
a144db2754
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue