Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1063)

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm

Issue 1863513002: Mac: Remove some remaining 10.6 logic for absent overlay scrollbar APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Zap notification, import appkit rather than forward decs Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
index b20efe35c59a79411a3581de7024857a82ec91ab..e671ec2bc72bc7bf267a22cce8dc70adb80e8753 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
@@ -211,7 +211,6 @@ void ScrollbarThemeMac::preferencesChanged(float initialButtonDelay, float autos
updateButtonPlacement(buttonPlacement);
gInitialButtonDelay = initialButtonDelay;
gAutoscrollButtonDelay = autoscrollButtonDelay;
- bool sendScrollerStyleNotification = gPreferredScrollerStyle != preferredScrollerStyle;
gPreferredScrollerStyle = preferredScrollerStyle;
if (redraw && !scrollbarSet().isEmpty()) {
ScrollbarSet::iterator end = scrollbarSet().end();
@@ -220,12 +219,6 @@ void ScrollbarThemeMac::preferencesChanged(float initialButtonDelay, float autos
(*it)->invalidate();
}
}
- if (sendScrollerStyleNotification) {
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"NSPreferredScrollerStyleDidChangeNotification"
- object:nil
- userInfo:@{ @"NSScrollerStyle" : @(gPreferredScrollerStyle) }];
- }
}
double ScrollbarThemeMac::initialAutoscrollTimerDelay()
« no previous file with comments | « third_party/WebKit/Source/platform/mac/NSScrollerImpDetails.h ('k') | ui/base/test/scoped_preferred_scroller_style_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698