Bug 1486971 - Receive accessibilityDisplayShouldReduceMotion change and notify it. r=mstange a=pascalc
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Sat, 15 Sep 2018 00:59:41 +0000
changeset 492582 8d26699d84cfd47c0e4d80c84bbbedcbef2be87c
parent 492581 20990ad02e181fe3b9cf8475aea19f817e153528
child 492583 78dc157290d3408f7b7edc2a26918be00cc7712e
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange, pascalc
bugs1486971
milestone63.0
Bug 1486971 - Receive accessibilityDisplayShouldReduceMotion change and notify it. r=mstange a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D5002
widget/cocoa/nsChildView.mm
--- a/widget/cocoa/nsChildView.mm
+++ b/widget/cocoa/nsChildView.mm
@@ -3330,16 +3330,20 @@ NSEvent* gLastDragMouseDownEvent = nil;
                                            selector:@selector(systemMetricsChanged)
                                                name:NSControlTintDidChangeNotification
                                              object:nil];
   [[NSNotificationCenter defaultCenter] addObserver:self
                                            selector:@selector(systemMetricsChanged)
                                                name:NSSystemColorsDidChangeNotification
                                              object:nil];
   [[NSNotificationCenter defaultCenter] addObserver:self
+                                           selector:@selector(systemMetricsChanged)
+                                               name:NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification
+                                             object:nil];
+  [[NSNotificationCenter defaultCenter] addObserver:self
                                            selector:@selector(scrollbarSystemMetricChanged)
                                                name:NSPreferredScrollerStyleDidChangeNotification
                                              object:nil];
   [[NSDistributedNotificationCenter defaultCenter] addObserver:self
                                                       selector:@selector(systemMetricsChanged)
                                                           name:@"AppleAquaScrollBarVariantChanged"
                                                         object:nil
                                             suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];