From cbf2a91ec8a132c139c8ae16facde23e4f1b9057 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Tue, 16 May 2023 10:17:17 +0200 Subject: [PATCH] style: Remove unused -moz-default-appearance values -moz-mac-vibrancy-light/dark, and the system colors of the same name Starting with macOS 10.14, the generic light/dark vibrancy is deprecated, and semantic vibrancy names are preferred. If we ever need more vibrancy, we can add new values with semantic names. Depends on D107910 Differential Revision: https://phabricator.services.mozilla.com/D108152 --- components/style/values/specified/box.rs | 4 ---- components/style/values/specified/color.rs | 2 -- 2 files changed, 6 deletions(-) diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index e30ea5215d0..3039a990ff9 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -1838,10 +1838,6 @@ pub enum Appearance { #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] MozMacSourceListSelection, #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] - MozMacVibrancyDark, - #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] - MozMacVibrancyLight, - #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] MozMacVibrantTitlebarDark, #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] MozMacVibrantTitlebarLight, diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index dc311680b36..d60f4801a11 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -329,8 +329,6 @@ pub enum SystemColor { /// Font smoothing background colors needed by the Mac OS X theme, based on /// -moz-appearance names. - MozMacVibrancyLight, - MozMacVibrancyDark, MozMacVibrantTitlebarLight, MozMacVibrantTitlebarDark, MozMacMenupopup,