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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2770293003: Feed ScrollableArea::showOverlayScrollbars into ScrollbarAnimationController. (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
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 77a1c5238ab467d5621978ae2db2c9e4e4dad0f2..0d7a5af2efe5d12edeefffe5439c89ca4c5a8010 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1936,6 +1936,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.

Powered by Google App Engine
This is Rietveld 408576698