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
commitfe312b28d8e25d05608eed928e20b8e5f1180565 (patch)
tree35b8827a066753b3a7ea0b02d47e0f50288030aa /layout
parent88f51fef364438dedecc318d97b3272047095bac (diff)
downloaduxp-fe312b28d8e25d05608eed928e20b8e5f1180565.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();