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

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

Issue 2744443003: Correct overlay scrollbar check FrameView::scrollbarExistenceDidChange (Closed)
Patch Set: 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 | no next file » | 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 51019808646d1dd8f1c3ba3116751307e6206892..be55a80dd695c85db8b1a369eaab87a17bdfaac8 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2110,7 +2110,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 | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698