From 5d95e1784d526b5508caaa723621c2e9eacdc080 Mon Sep 17 00:00:00 2001 From: Pale Moon Date: Thu, 13 Jul 2017 01:37:33 +0200 Subject: [PATCH] Make the '-moz-windows-accent-color-applies' media query live to Windows 10 settings changes. --- layout/base/nsPresContext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index 543465cbea..38dc63e1f5 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -1733,6 +1733,9 @@ nsPresContext::SysColorChangedInternal() sLookAndFeelChanged = false; } + // Invalidate cached '-moz-windows-accent-color-applies' media query: + nsCSSRuleProcessor::FreeSystemMetrics(); + // Reset default background and foreground colors for the document since // they may be using system colors GetDocumentColorPreferences();