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.
|
} |
} |