Make the '-moz-windows-accent-color-applies' media query live to Windows 10 settings changes.

This commit is contained in:
wolfbeast 2017-07-19 13:33:17 +02:00 committed by Roy Tam
commit e9ce84445e

View file

@ -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();