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

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

Issue 2128553002: Make rootScroller the layout viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@viewportScrollCallbackInterface
Patch Set: Rebase + comment fix in test Created 4 years, 5 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/frame/RootFrameViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
index 8b2e6c2ab3ffdcd65490bc25090a969c56a69c9b..2eed1f5ab8236f91d790f10d6246ae3cf7024062 100644
--- a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
@@ -18,6 +18,11 @@ RootFrameViewport::RootFrameViewport(ScrollableArea& visualViewport, ScrollableA
{
}
+void RootFrameViewport::setLayoutViewport(ScrollableArea& newLayoutViewport)
+{
+ m_layoutViewport = &newLayoutViewport;
+}
+
void RootFrameViewport::updateScrollAnimator()
{
scrollAnimator().setCurrentPosition(toFloatPoint(scrollOffsetFromScrollAnimators()));

Powered by Google App Engine
This is Rietveld 408576698