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

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

Issue 2285253003: Move TopDocumentRootScrollerController to a separate object on FrameHost (Closed)
Patch Set: Rebase Created 4 years, 3 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/FrameHost.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameHost.cpp b/third_party/WebKit/Source/core/frame/FrameHost.cpp
index 90dc46e6f8c80c6f95285822dc0f8b6cc7e4a7ad..1c121273ce2bfcea77d1da4df5ba658fd659b94f 100644
--- a/third_party/WebKit/Source/core/frame/FrameHost.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameHost.cpp
@@ -39,6 +39,7 @@
#include "core/inspector/ConsoleMessageStorage.h"
#include "core/page/Page.h"
#include "core/page/scrolling/OverscrollController.h"
+#include "core/page/scrolling/TopDocumentRootScrollerController.h"
#include "public/platform/Platform.h"
#include "public/platform/WebScheduler.h"
@@ -59,6 +60,8 @@ FrameHost::FrameHost(Page& page)
m_page->chromeClient()))
, m_eventHandlerRegistry(new EventHandlerRegistry(*this))
, m_consoleMessageStorage(new ConsoleMessageStorage())
+ , m_globalRootScrollerController(
+ TopDocumentRootScrollerController::create(*this))
, m_subframeCount(0)
{
}
@@ -183,6 +186,11 @@ const ConsoleMessageStorage& FrameHost::consoleMessageStorage() const
return *m_consoleMessageStorage;
}
+TopDocumentRootScrollerController& FrameHost::globalRootScrollerController() const
+{
+ return *m_globalRootScrollerController;
+}
+
DEFINE_TRACE(FrameHost)
{
visitor->trace(m_page);
@@ -191,6 +199,7 @@ DEFINE_TRACE(FrameHost)
visitor->trace(m_overscrollController);
visitor->trace(m_eventHandlerRegistry);
visitor->trace(m_consoleMessageStorage);
+ visitor->trace(m_globalRootScrollerController);
}
#if ENABLE(ASSERT)
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameHost.h ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698