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 2377b940add2cccf43103e6a8f9599ac1b52cbfb..1dafaec6f7739efa02f614d58767f2dd325869de 100644 |
--- a/third_party/WebKit/Source/core/page/Page.cpp |
+++ b/third_party/WebKit/Source/core/page/Page.cpp |
@@ -199,6 +199,15 @@ void Page::setMainFrame(Frame* mainFrame) |
// is called in the base constructor for both LocalFrame and RemoteFrame, |
// when the vtables for the derived classes have not yet been setup. |
m_mainFrame = mainFrame; |
+ |
+ if (scrollingCoordinator()) |
+ scrollingCoordinator()->onSetMainFrame(); |
+} |
+ |
+void Page::willSwapMainFrame() |
+{ |
+ if (m_scrollingCoordinator) |
+ m_scrollingCoordinator->willSwapMainFrame(); |
} |
void Page::documentDetached(Document* document) |