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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.cpp

Issue 1923533003: [Layout API] Convert ViewportScrollCallback to use Document::layoutViewItem() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.cpp b/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.cpp
index c9b130f0f693be16ea6febeafca9c4c93f338a9c..fce8208bd2576b646756614e7f21a0ec7c0a354a 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.cpp
@@ -11,7 +11,7 @@
#include "core/frame/TopControls.h"
#include "core/frame/VisualViewport.h"
#include "core/input/EventHandler.h"
-#include "core/layout/LayoutView.h"
+#include "core/layout/api/LayoutViewItem.h"
#include "core/page/scrolling/ScrollState.h"
#include "platform/geometry/FloatSize.h"
#include "platform/scroll/ScrollableArea.h"
@@ -102,10 +102,10 @@ void ViewportScrollCallback::handleEvent(ScrollState* state)
ScrollableArea* ViewportScrollCallback::getRootFrameViewport() const
{
- if (!m_document->layoutView())
+ if (m_document->layoutViewItem().isNull())
return nullptr;
- FrameView* frameView = m_document->layoutView()->frameView();
+ FrameView* frameView = m_document->layoutViewItem().frameView();
if (!frameView)
return nullptr;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698