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 489951 8d26699d84cfd47c0e4d80c84bbbedcbef2be87c
parent 489950 20990ad02e181fe3b9cf8475aea19f817e153528
child 489952 78dc157290d3408f7b7edc2a26918be00cc7712e
push id9842
push userdluca@mozilla.com
push dateThu, 20 Sep 2018 13:12:16 +0000
treeherdermozilla-beta@6f98c616ab30 [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];