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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.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/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index 1f2c9789647ab2ca8b178eab32df34cb5b50cae2..8eb10a6dd3aaac6a8994f89f4562cef83bdff8a7 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -649,6 +649,8 @@ void PaintLayerCompositor::frameViewDidScroll() {
else
m_scrollLayer->setPosition(IntPoint(-scrollOffset));
+ showScrollbarLayersIfNeeded();
+
DEFINE_STATIC_LOCAL(EnumerationHistogram, acceleratedBackgroundHistogram,
("Renderer.AcceleratedFixedRootBackground",
AcceleratedFixedRootBackgroundHistogramMax));
@@ -1078,6 +1080,15 @@ void PaintLayerCompositor::updateOverflowControlsLayers() {
}
m_layoutView.frameView()->positionScrollbarLayers();
+ showScrollbarLayersIfNeeded();
+}
+
+void PaintLayerCompositor::showScrollbarLayersIfNeeded() {
+ FrameView* frameView = m_layoutView.frameView();
+ if (m_scrollLayer && frameView->needsShowScrollbarLayers()) {
+ m_scrollLayer->platformLayer()->showScrollbars();
+ frameView->didShowScrollbarLayers();
+ }
}
void PaintLayerCompositor::ensureRootLayer() {

Powered by Google App Engine
This is Rietveld 408576698