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

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

Issue 1308053003: Replace pinch scrollbars with regular scrollbars. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix webkit_unit_tests Created 5 years, 4 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: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 67a44ea7569a54490a7d2a1c5e0c34ab9663fd29..9f0139ae686925e05f3f50a5dd6385df5c1efd48 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -676,6 +676,13 @@ bool FrameView::usesCompositedScrolling() const
return false;
}
+GraphicsLayer* FrameView::layerForScrollbarContainer() const
+{
+ if (m_frame->isMainFrame())
+ return page()->frameHost().visualViewport().layerForScrollbarContainer();
+ return layerForContainer();
+}
+
GraphicsLayer* FrameView::layerForScrolling() const
{
LayoutView* layoutView = this->layoutView();

Powered by Google App Engine
This is Rietveld 408576698