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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.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/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index ffe33d94e50aa39bb66a4789bd403afe6cb2c93c..0223e111eef964798c44faa9140f787eb2fc5057 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1926,6 +1926,12 @@ bool CompositedLayerMapping::updateOverflowControlsLayers(
toggleScrollbarLayerIfNeeded(m_layerForVerticalScrollbar, false,
CompositingReasonLayerForVerticalScrollbar);
scrollableArea->resetRebuildScrollbarLayerFlags();
+
+ if (m_scrollingContentsLayer &&
+ scrollableArea->needsShowScrollbarLayers()) {
+ m_scrollingContentsLayer->platformLayer()->showScrollbars();
+ scrollableArea->didShowScrollbarLayers();
+ }
}
// If the subtree is invisible, we don't actually need scrollbar layers.
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698