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

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

Issue 2501493002: Revert "MainFrame scrollbars should work with RFV instead of FV" (Closed)
Patch Set: 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 5ee4df68b5d0452c49eb237e9ba2df00dfcb3288..838c8e3f314f346598e67d1281c898a969e5406e 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
@@ -389,9 +389,11 @@ void ScrollableArea::contentsResized() {
}
bool ScrollableArea::hasOverlayScrollbars() const {
- return (horizontalScrollbar() &&
- horizontalScrollbar()->isOverlayScrollbar()) ||
- (verticalScrollbar() && verticalScrollbar()->isOverlayScrollbar());
+ Scrollbar* vScrollbar = verticalScrollbar();
+ if (vScrollbar && vScrollbar->isOverlayScrollbar())
+ return true;
+ Scrollbar* hScrollbar = horizontalScrollbar();
+ return hScrollbar && hScrollbar->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