summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-07-19 13:33:17 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-04 20:39:23 +0100
commit3af2c1c8795312d6cbb947b50bc1912df0589e0e (patch)
tree35b8827a066753b3a7ea0b02d47e0f50288030aa /layout
parentf843f02860d8acd709fe89bfa891892d907de81a (diff)
downloaduxp-3af2c1c8795312d6cbb947b50bc1912df0589e0e.tar.gz
Make the '-moz-windows-accent-color-applies' media query live to Windows 10 settings changes.
Diffstat (limited to 'layout')
-rw-r--r--layout/base/nsPresContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp
index b27e6d0e3a..d9f7b368c7 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();