mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1206468 - Remove unused internal appearance value -moz-mac-unified-toolbar. r=mstange
This commit is contained in:
parent
496e6913ba
commit
ce34513c0b
@ -255,8 +255,7 @@
|
||||
#define NS_THEME_WIN_MEDIA_TOOLBOX 222
|
||||
#define NS_THEME_WIN_BROWSER_TAB_BAR_TOOLBOX 223
|
||||
|
||||
// Unified toolbar and titlebar elements on the Mac
|
||||
#define NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR 224
|
||||
// Titlebar elements on the Mac
|
||||
#define NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON 226
|
||||
|
||||
// Mac help button
|
||||
|
@ -553,8 +553,7 @@ public:
|
||||
/**
|
||||
* Notifies the builder that a particular themed widget exists
|
||||
* at the given rectangle within the currently built display list.
|
||||
* For certain appearance values (currently only
|
||||
* NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR, NS_THEME_TOOLBAR and
|
||||
* For certain appearance values (currently only NS_THEME_TOOLBAR and
|
||||
* NS_THEME_WINDOW_TITLEBAR) this gets called during every display list
|
||||
* construction, for every themed widget of the right type within the
|
||||
* display list, except for themed widgets which are transformed or have
|
||||
|
@ -717,7 +717,6 @@ CSS_KEY(-moz-window-button-restore, _moz_window_button_restore)
|
||||
CSS_KEY(-moz-window-button-box, _moz_window_button_box)
|
||||
CSS_KEY(-moz-window-button-box-maximized, _moz_window_button_box_maximized)
|
||||
CSS_KEY(-moz-mac-help-button, _moz_mac_help_button)
|
||||
CSS_KEY(-moz-mac-unified-toolbar, _moz_mac_unified_toolbar)
|
||||
CSS_KEY(-moz-win-exclude-glass, _moz_win_exclude_glass)
|
||||
CSS_KEY(-moz-mac-vibrancy-light, _moz_mac_vibrancy_light)
|
||||
CSS_KEY(-moz-mac-vibrancy-dark, _moz_mac_vibrancy_dark)
|
||||
|
@ -828,7 +828,6 @@ const KTableValue nsCSSProps::kAppearanceKTable[] = {
|
||||
eCSSKeyword__moz_win_browsertabbar_toolbox, NS_THEME_WIN_BROWSER_TAB_BAR_TOOLBOX,
|
||||
eCSSKeyword__moz_win_glass, NS_THEME_WIN_GLASS,
|
||||
eCSSKeyword__moz_win_borderless_glass, NS_THEME_WIN_BORDERLESS_GLASS,
|
||||
eCSSKeyword__moz_mac_unified_toolbar, NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR,
|
||||
eCSSKeyword__moz_mac_fullscreen_button, NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON,
|
||||
eCSSKeyword__moz_mac_help_button, NS_THEME_MOZ_MAC_HELP_BUTTON,
|
||||
eCSSKeyword__moz_window_titlebar, NS_THEME_WINDOW_TITLEBAR,
|
||||
|
@ -3291,12 +3291,10 @@ static const NSString* kStateCollectionBehavior = @"collectionBehavior";
|
||||
// This class also provides us with a pill button to show/hide the toolbar up to 10.6.
|
||||
//
|
||||
// Drawing the unified gradient in the titlebar and the toolbar works like this:
|
||||
// 1) In the style sheet we set the toolbar's -moz-appearance to toolbar or
|
||||
// -moz-mac-unified-toolbar.
|
||||
// 1) In the style sheet we set the toolbar's -moz-appearance to toolbar.
|
||||
// 2) When the toolbar is visible and we paint the application chrome
|
||||
// window, the array that Gecko passes nsChildView::UpdateThemeGeometries
|
||||
// will contain an entry for the widget type NS_THEME_TOOLBAR or
|
||||
// NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR.
|
||||
// will contain an entry for the widget type NS_THEME_TOOLBAR.
|
||||
// 3) nsChildView::UpdateThemeGeometries finds the toolbar frame's ToolbarWindow
|
||||
// and passes the toolbar frame's height to setUnifiedToolbarHeight.
|
||||
// 4) If the toolbar height has changed, a titlebar redraw is triggered and the
|
||||
|
@ -311,7 +311,6 @@ static BOOL IsToolbarStyleContainer(nsIFrame* aFrame)
|
||||
|
||||
switch (aFrame->StyleDisplay()->mAppearance) {
|
||||
case NS_THEME_TOOLBAR:
|
||||
case NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR:
|
||||
case NS_THEME_STATUSBAR:
|
||||
return YES;
|
||||
default:
|
||||
@ -2688,7 +2687,6 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsRenderingContext* aContext,
|
||||
}
|
||||
break;
|
||||
|
||||
case NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR:
|
||||
case NS_THEME_TOOLBAR: {
|
||||
NSWindow* win = NativeWindowForFrame(aFrame);
|
||||
if (ToolbarCanBeUnified(cgContext, macRect, win)) {
|
||||
@ -3601,7 +3599,6 @@ nsNativeThemeCocoa::WidgetStateChanged(nsIFrame* aFrame, uint8_t aWidgetType,
|
||||
case NS_THEME_WINDOW_TITLEBAR:
|
||||
case NS_THEME_TOOLBOX:
|
||||
case NS_THEME_TOOLBAR:
|
||||
case NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR:
|
||||
case NS_THEME_STATUSBAR:
|
||||
case NS_THEME_STATUSBAR_PANEL:
|
||||
case NS_THEME_STATUSBAR_RESIZER_PANEL:
|
||||
@ -3728,7 +3725,6 @@ nsNativeThemeCocoa::ThemeSupportsWidget(nsPresContext* aPresContext, nsIFrame* a
|
||||
case NS_THEME_SPINNER_UP_BUTTON:
|
||||
case NS_THEME_SPINNER_DOWN_BUTTON:
|
||||
case NS_THEME_TOOLBAR:
|
||||
case NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR:
|
||||
case NS_THEME_STATUSBAR:
|
||||
case NS_THEME_NUMBER_INPUT:
|
||||
case NS_THEME_TEXTFIELD:
|
||||
@ -3958,7 +3954,6 @@ nsNativeThemeCocoa::ThemeGeometryTypeForWidget(nsIFrame* aFrame, uint8_t aWidget
|
||||
case NS_THEME_WINDOW_TITLEBAR:
|
||||
return eThemeGeometryTypeTitlebar;
|
||||
case NS_THEME_TOOLBAR:
|
||||
case NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR:
|
||||
return eThemeGeometryTypeToolbar;
|
||||
case NS_THEME_TOOLBOX:
|
||||
return eThemeGeometryTypeToolbox;
|
||||
@ -4009,7 +4004,6 @@ nsNativeThemeCocoa::GetWidgetTransparency(nsIFrame* aFrame, uint8_t aWidgetType)
|
||||
return eOpaque;
|
||||
|
||||
case NS_THEME_TOOLBAR:
|
||||
case NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR:
|
||||
return eOpaque;
|
||||
|
||||
default:
|
||||
|
@ -1267,10 +1267,9 @@ class nsIWidget : public nsISupports {
|
||||
/**
|
||||
* Called when Gecko knows which themed widgets exist in this window.
|
||||
* The passed array contains an entry for every themed widget of the right
|
||||
* type (currently only NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR and
|
||||
* NS_THEME_TOOLBAR) within the window, except for themed widgets which are
|
||||
* transformed or have effects applied to them (e.g. CSS opacity or
|
||||
* filters).
|
||||
* type (currently only NS_THEME_TOOLBAR) within the window, except for
|
||||
* themed widgets which are transformed or have effects applied to them
|
||||
* (e.g. CSS opacity or filters).
|
||||
* This could sometimes be called during display list construction
|
||||
* outside of painting.
|
||||
* If called during painting, it will be called before we actually
|
||||
|
Loading…
Reference in New Issue
Block a user