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

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

Issue 2454913003: MainFrame scrollbars should work with RFV instead of FV (Closed)
Patch Set: Fix broken chromeos bot 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/ScrollableArea.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
index 838c8e3f314f346598e67d1281c898a969e5406e..5ee4df68b5d0452c49eb237e9ba2df00dfcb3288 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
@@ -389,11 +389,9 @@ void ScrollableArea::contentsResized() {
}
bool ScrollableArea::hasOverlayScrollbars() const {
- Scrollbar* vScrollbar = verticalScrollbar();
- if (vScrollbar && vScrollbar->isOverlayScrollbar())
- return true;
- Scrollbar* hScrollbar = horizontalScrollbar();
- return hScrollbar && hScrollbar->isOverlayScrollbar();
+ return (horizontalScrollbar() &&
+ horizontalScrollbar()->isOverlayScrollbar()) ||
+ (verticalScrollbar() && verticalScrollbar()->isOverlayScrollbar());
}
void ScrollableArea::setScrollbarOverlayColorTheme(
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.h ('k') | third_party/WebKit/Source/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698