зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1051522 - Add -moz-appearance values -moz-mac-vibrancy-light and -moz-mac-vibrancy-dark for the behind-window vibrancy effect on 10.10. r=roc
This commit is contained in:
Родитель
59e8cc93f1
Коммит
c4de2026fb
|
@ -282,3 +282,5 @@
|
|||
// moz-apperance style used in setting proper glass margins
|
||||
#define NS_THEME_WIN_EXCLUDE_GLASS 242
|
||||
|
||||
#define NS_THEME_MAC_VIBRANCY_LIGHT 243
|
||||
#define NS_THEME_MAC_VIBRANCY_DARK 244
|
||||
|
|
|
@ -2437,6 +2437,8 @@ nsDisplayThemedBackground::nsDisplayThemedBackground(nsDisplayListBuilder* aBuil
|
|||
case NS_THEME_WINDOW_BUTTON_BOX:
|
||||
case NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON:
|
||||
case NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED:
|
||||
case NS_THEME_MAC_VIBRANCY_LIGHT:
|
||||
case NS_THEME_MAC_VIBRANCY_DARK:
|
||||
RegisterThemeGeometry(aBuilder, aFrame);
|
||||
break;
|
||||
case NS_THEME_WIN_BORDERLESS_GLASS:
|
||||
|
|
|
@ -688,6 +688,8 @@ 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)
|
||||
CSS_KEY(alphabetic, alphabetic)
|
||||
CSS_KEY(bevel, bevel)
|
||||
CSS_KEY(butt, butt)
|
||||
|
|
|
@ -728,6 +728,8 @@ const KTableValue nsCSSProps::kAppearanceKTable[] = {
|
|||
eCSSKeyword__moz_window_button_box, NS_THEME_WINDOW_BUTTON_BOX,
|
||||
eCSSKeyword__moz_window_button_box_maximized, NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED,
|
||||
eCSSKeyword__moz_win_exclude_glass, NS_THEME_WIN_EXCLUDE_GLASS,
|
||||
eCSSKeyword__moz_mac_vibrancy_light, NS_THEME_MAC_VIBRANCY_LIGHT,
|
||||
eCSSKeyword__moz_mac_vibrancy_dark, NS_THEME_MAC_VIBRANCY_DARK,
|
||||
eCSSKeyword_UNKNOWN,-1
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче