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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2743523002: Move FrameHost::m_globalRootScrollerController to Page (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
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | 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/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index a0d2e37ab82d89d35177c42aebd200a7bb90dced..89aec894ffd089eac6a1fa7420b48bb96546e277 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -55,6 +55,7 @@
#include "core/page/ScopedPageSuspender.h"
#include "core/page/ValidationMessageClient.h"
#include "core/page/scrolling/ScrollingCoordinator.h"
+#include "core/page/scrolling/TopDocumentRootScrollerController.h"
#include "core/paint/PaintLayer.h"
#include "platform/WebFrameScheduler.h"
#include "platform/graphics/GraphicsLayer.h"
@@ -107,6 +108,8 @@ Page::Page(PageClients& pageClients)
m_pointerLockController(PointerLockController::create(this)),
m_browserControls(BrowserControls::create(*this)),
m_eventHandlerRegistry(new EventHandlerRegistry(*this)),
+ m_globalRootScrollerController(
+ TopDocumentRootScrollerController::create(*this)),
m_visualViewport(VisualViewport::create(*this)),
m_mainFrame(nullptr),
m_editorClient(pageClients.editorClient),
@@ -182,6 +185,10 @@ const EventHandlerRegistry& Page::eventHandlerRegistry() const {
return *m_eventHandlerRegistry;
}
+TopDocumentRootScrollerController& Page::globalRootScrollerController() const {
+ return *m_globalRootScrollerController;
+}
+
VisualViewport& Page::visualViewport() {
return *m_visualViewport;
}
@@ -569,6 +576,7 @@ DEFINE_TRACE(Page) {
visitor->trace(m_scrollingCoordinator);
visitor->trace(m_browserControls);
visitor->trace(m_eventHandlerRegistry);
+ visitor->trace(m_globalRootScrollerController);
visitor->trace(m_visualViewport);
visitor->trace(m_mainFrame);
visitor->trace(m_validationMessageClient);
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698