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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp

Issue 2770293003: Feed ScrollableArea::showOverlayScrollbars into ScrollbarAnimationController. (Closed)
Patch Set: rebase Created 3 years, 9 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/ScrollableArea.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
index 3991c98d2696fe08eea50d91aad7f86f8ab37be9..af89b4faa00b1eb7369b3ab6a6d2b49b5089af2a 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
@@ -67,7 +67,8 @@ ScrollableArea::ScrollableArea()
m_scrollCornerNeedsPaintInvalidation(false),
m_scrollbarsHidden(false),
m_scrollbarCaptured(false),
- m_mouseOverScrollbar(false) {}
+ m_mouseOverScrollbar(false),
+ m_needsShowScrollbarLayers(false) {}
ScrollableArea::~ScrollableArea() {}
@@ -565,6 +566,7 @@ void ScrollableArea::showOverlayScrollbars() {
return;
setScrollbarsHidden(false);
+ m_needsShowScrollbarLayers = true;
const double timeUntilDisable =
ScrollbarTheme::theme().overlayScrollbarFadeOutDelaySeconds() +
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.h ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698