From 3af2c1c8795312d6cbb947b50bc1912df0589e0e Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 19 Jul 2017 13:33:17 +0200 Subject: 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(+) (limited to 'layout') diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index b27e6d0e3..d9f7b368c 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -1696,6 +1696,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(); -- cgit v1.2.3