зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1507423 - Don't return border/padding from MOZ_GTK_HEADER_BAR/MOZ_GTK_HEADER_BAR_MAXIMIZED, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D14242 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
70f9a9330e
Коммит
2e33d16018
|
@ -2131,8 +2131,6 @@ static gint moz_gtk_header_bar_paint(WidgetNodeType widgetType, cairo_t* cr,
|
|||
GtkStyleContext* style =
|
||||
GetStyleContext(widgetType, GTK_TEXT_DIR_NONE, state_flags);
|
||||
|
||||
InsetByMargin(rect, style);
|
||||
|
||||
// Some themes (Adwaita for instance) draws bold dark line at
|
||||
// titlebar bottom. It does not fit well with Firefox tabs so
|
||||
// draw with some extent to make the titlebar bottom part invisible.
|
||||
|
@ -2346,13 +2344,6 @@ gint moz_gtk_get_widget_border(WidgetNodeType widget, gint* left, gint* top,
|
|||
|
||||
return MOZ_GTK_SUCCESS;
|
||||
}
|
||||
case MOZ_GTK_HEADER_BAR:
|
||||
case MOZ_GTK_HEADER_BAR_MAXIMIZED: {
|
||||
style = GetStyleContext(widget);
|
||||
moz_gtk_add_border_padding(style, left, top, right, bottom);
|
||||
*top = *bottom = 0;
|
||||
return MOZ_GTK_SUCCESS;
|
||||
}
|
||||
/* These widgets have no borders, since they are not containers. */
|
||||
case MOZ_GTK_CHECKBUTTON_LABEL:
|
||||
case MOZ_GTK_RADIOBUTTON_LABEL:
|
||||
|
@ -2372,6 +2363,8 @@ gint moz_gtk_get_widget_border(WidgetNodeType widget, gint* left, gint* top,
|
|||
case MOZ_GTK_TREEVIEW_EXPANDER:
|
||||
case MOZ_GTK_TOOLBAR_SEPARATOR:
|
||||
case MOZ_GTK_MENUSEPARATOR:
|
||||
case MOZ_GTK_HEADER_BAR:
|
||||
case MOZ_GTK_HEADER_BAR_MAXIMIZED:
|
||||
case MOZ_GTK_HEADER_BAR_BUTTON_CLOSE:
|
||||
case MOZ_GTK_HEADER_BAR_BUTTON_MINIMIZE:
|
||||
case MOZ_GTK_HEADER_BAR_BUTTON_MAXIMIZE:
|
||||
|
|
Загрузка…
Ссылка в новой задаче