Bug 1379269 - Make the '-moz-windows-accent-color-applies' media query live to Windows 10 settings changes. r=dholbert
authorJonathan Watt <jwatt@jwatt.org>
Tue, 11 Jul 2017 18:38:45 +0200
changeset 417061 33f7f73ffb365ab6e66c7175076b97eee348ec7f
parent 417060 ed043698eafa6ecdf60ffec5b0b49a9f1c5f57c9
child 417062 707b8c089de26e0eb3051e743a1cefea84ce2196
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1379269
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1379269 - Make the '-moz-windows-accent-color-applies' media query live to Windows 10 settings changes. r=dholbert MozReview-Commit-ID: 9tE9Zvr9Dsb
layout/base/nsPresContext.cpp
--- a/layout/base/nsPresContext.cpp
+++ b/layout/base/nsPresContext.cpp
@@ -1890,16 +1890,19 @@ nsPresContext::SysColorChangedInternal()
   mPendingSysColorChanged = false;
 
   if (sLookAndFeelChanged) {
      // Don't use the cached values for the system colors
     LookAndFeel::Refresh();
     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();
 
   // The system color values are computed to colors in the style data,
   // so normal style data comparison is sufficient here.
   RebuildAllStyleData(nsChangeHint(0), nsRestyleHint(0));
 }