From 07fab37fd88f6c5f971063ad7a96e897f946d9c9 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Wed, 21 Jun 2017 14:59:32 +0200 Subject: [PATCH] Backed out changeset 352c30687dea (bug 1344917) --- dom/base/nsGkAtomList.h | 2 -- layout/style/nsCSSRuleProcessor.cpp | 5 ----- layout/style/nsMediaFeatures.cpp | 8 -------- widget/LookAndFeel.h | 9 --------- widget/windows/nsLookAndFeel.cpp | 6 ------ 5 files changed, 30 deletions(-) diff --git a/dom/base/nsGkAtomList.h b/dom/base/nsGkAtomList.h index 91f8d36f5d75..916d91931b7a 100644 --- a/dom/base/nsGkAtomList.h +++ b/dom/base/nsGkAtomList.h @@ -2237,7 +2237,6 @@ GK_ATOM(scrollbar_end_backward, "scrollbar-end-backward") GK_ATOM(scrollbar_end_forward, "scrollbar-end-forward") GK_ATOM(scrollbar_thumb_proportional, "scrollbar-thumb-proportional") GK_ATOM(overlay_scrollbars, "overlay-scrollbars") -GK_ATOM(windows_accent_color_applies, "windows-accent-color-applies") GK_ATOM(windows_default_theme, "windows-default-theme") GK_ATOM(mac_graphite_theme, "mac-graphite-theme") GK_ATOM(mac_yosemite_theme, "mac-yosemite-theme") @@ -2267,7 +2266,6 @@ GK_ATOM(_moz_scrollbar_end_backward, "-moz-scrollbar-end-backward") GK_ATOM(_moz_scrollbar_end_forward, "-moz-scrollbar-end-forward") GK_ATOM(_moz_scrollbar_thumb_proportional, "-moz-scrollbar-thumb-proportional") GK_ATOM(_moz_overlay_scrollbars, "-moz-overlay-scrollbars") -GK_ATOM(_moz_windows_accent_color_applies, "-moz-windows-accent-color-applies") GK_ATOM(_moz_windows_default_theme, "-moz-windows-default-theme") GK_ATOM(_moz_mac_graphite_theme, "-moz-mac-graphite-theme") GK_ATOM(_moz_mac_yosemite_theme, "-moz-mac-yosemite-theme") diff --git a/layout/style/nsCSSRuleProcessor.cpp b/layout/style/nsCSSRuleProcessor.cpp index a3ddcec69d61..892f7933ad4c 100644 --- a/layout/style/nsCSSRuleProcessor.cpp +++ b/layout/style/nsCSSRuleProcessor.cpp @@ -1132,11 +1132,6 @@ nsCSSRuleProcessor::InitSystemMetrics() sSystemMetrics->AppendElement(nsGkAtoms::mac_yosemite_theme); } - rv = LookAndFeel::GetInt(LookAndFeel::eIntID_WindowsAccentColorApplies, &metricResult); - if (NS_SUCCEEDED(rv) && metricResult) { - sSystemMetrics->AppendElement(nsGkAtoms::windows_accent_color_applies); - } - rv = LookAndFeel::GetInt(LookAndFeel::eIntID_DWMCompositor, &metricResult); if (NS_SUCCEEDED(rv) && metricResult) { sSystemMetrics->AppendElement(nsGkAtoms::windows_compositor); diff --git a/layout/style/nsMediaFeatures.cpp b/layout/style/nsMediaFeatures.cpp index d29d0504880c..ee89d3bd62ba 100644 --- a/layout/style/nsMediaFeatures.cpp +++ b/layout/style/nsMediaFeatures.cpp @@ -693,14 +693,6 @@ nsMediaFeatures::features[] = { { &nsGkAtoms::mac_yosemite_theme }, GetSystemMetric }, - { - &nsGkAtoms::_moz_windows_accent_color_applies, - nsMediaFeature::eMinMaxNotAllowed, - nsMediaFeature::eBoolInteger, - nsMediaFeature::eNoRequirements, - { &nsGkAtoms::windows_accent_color_applies }, - GetSystemMetric - }, { &nsGkAtoms::_moz_windows_compositor, nsMediaFeature::eMinMaxNotAllowed, diff --git a/widget/LookAndFeel.h b/widget/LookAndFeel.h index 551f47b7154a..4ebf84a82955 100644 --- a/widget/LookAndFeel.h +++ b/widget/LookAndFeel.h @@ -242,15 +242,6 @@ public: // Should menu items blink when they're chosen? eIntID_ChosenMenuItemsShouldBlink, - /* - * A Boolean value to determine whether the Windows accent color - * should be applied to the title bar. - * - * The value of this metric is not used on other platforms. These platforms - * should return NS_ERROR_NOT_IMPLEMENTED when queried for this metric. - */ - eIntID_WindowsAccentColorApplies, - /* * A Boolean value to determine whether the Windows default theme is * being used. diff --git a/widget/windows/nsLookAndFeel.cpp b/widget/windows/nsLookAndFeel.cpp index e48830158634..95fb9bd96d05 100644 --- a/widget/windows/nsLookAndFeel.cpp +++ b/widget/windows/nsLookAndFeel.cpp @@ -440,12 +440,6 @@ nsLookAndFeel::GetIntImpl(IntID aID, int32_t &aResult) case eIntID_DWMCompositor: aResult = nsUXThemeData::CheckForCompositor(); break; - case eIntID_WindowsAccentColorApplies: - { - nscolor unused; - aResult = NS_SUCCEEDED(GetAccentColor(unused)) ? 1 : 0; - } - break; case eIntID_WindowsGlass: // Aero Glass is only available prior to Windows 8 when DWM is used. aResult = (nsUXThemeData::CheckForCompositor() && !IsWin8OrLater());