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

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

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: overlay-scrollbar-mouse-capture now works on Mac Created 4 years, 1 month 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 60d97556f4c6f11a0934be919c53a2d87cbd020b..e2030e0b02818d6eef0a96ddd4208e15d891bf18 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
@@ -92,10 +92,7 @@ using namespace blink;
context:(void*)context {
if ([keyPath isEqualToString:@"knobAlpha"]) {
BOOL visible = [_scrollbarPainter.get() knobAlpha] > 0;
- if (_visible != visible) {
- _visible = visible;
- _scrollbar->visibilityChanged();
- }
+ _scrollbar->setScrollbarsHidden(!visible);
dtapuska 2016/11/02 16:53:21 Can we remove the _visible member now?
bokan 2016/11/02 22:41:57 Done.
}
}

Powered by Google App Engine
This is Rietveld 408576698