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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2780883002: Correct overlay scrollbar check FrameView::scrollbarExistenceDidChange (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 91c82bdcf3276ac701da5bd92e86ee05da3e6acf..1079021bdb748b2e9db6d2e912f3673a5bb2b5f9 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2121,7 +2121,11 @@ void FrameView::scrollbarExistenceDidChange() {
if (!frame().view())
return;
- bool usesOverlayScrollbars = ScrollbarTheme::theme().usesOverlayScrollbars();
+ Element* customScrollbarElement = nullptr;
+
+ bool usesOverlayScrollbars =
+ ScrollbarTheme::theme().usesOverlayScrollbars() &&
+ !shouldUseCustomScrollbars(customScrollbarElement);
// FIXME: this call to layout() could be called within FrameView::layout(),
// but before performLayout(), causing double-layout. See also
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698