| 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..156f1b5c9cc7c9f31e0b75f1a0afb67db8bf2aa7 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(Frame* frame)
|
| +{
|
| + if (m_scrollingCoordinator)
|
| + m_scrollingCoordinator->willSwapMainFrame();
|
| }
|
|
|
| void Page::documentDetached(Document* document)
|
|
|