Bug 1478212 - Propagate MediaFeatureChangeReason::SystemMetricsChange into sub frames. r=emilio

A test case covers this will be introduced in bug 1486971.

Differential Revision: https://phabricator.services.mozilla.com/D4998

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Hiroyuki Ikezoe 2018-09-05 01:50:33 +00:00
parent a3d7d3c3d1
commit 6e8f3beb98

View File

@ -1757,7 +1757,7 @@ nsPresContext::RefreshSystemMetrics()
// properly reflected in computed style data), system fonts (whose
// changes are not), and -moz-appearance (whose changes likewise are
// not), so we need to recascade for the first, and reflow for the rest.
MediaFeatureValuesChanged({
MediaFeatureValuesChangedAllDocuments({
eRestyle_ForceDescendants,
NS_STYLE_HINT_REFLOW,
MediaFeatureChangeReason::SystemMetricsChange,