summaryrefslogtreecommitdiffstats
path: root/layout/style/nsCSSRuleProcessor.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-07-19 13:11:28 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-04 20:36:05 +0100
commitac663083950b2e00573395d68348302df94e3ac1 (patch)
tree132d04993a49b2b5b4da21189bf0c686a04fce9d /layout/style/nsCSSRuleProcessor.cpp
parentfc7d9fade54dfbe275c4808dabe30a19415082e0 (diff)
downloadUXP-ac663083950b2e00573395d68348302df94e3ac1.tar
UXP-ac663083950b2e00573395d68348302df94e3ac1.tar.gz
UXP-ac663083950b2e00573395d68348302df94e3ac1.tar.lz
UXP-ac663083950b2e00573395d68348302df94e3ac1.tar.xz
UXP-ac663083950b2e00573395d68348302df94e3ac1.zip
Add `@media(-moz-windows-accent-color-applies)`
#31 point 3
Diffstat (limited to 'layout/style/nsCSSRuleProcessor.cpp')
-rw-r--r--layout/style/nsCSSRuleProcessor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/layout/style/nsCSSRuleProcessor.cpp b/layout/style/nsCSSRuleProcessor.cpp
index 07a4ef57b..4dc7ea1c8 100644
--- a/layout/style/nsCSSRuleProcessor.cpp
+++ b/layout/style/nsCSSRuleProcessor.cpp
@@ -1127,6 +1127,11 @@ 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);