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

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

Issue 1459023002: Compositor Animation Timelines: Fix frame swapping tests in WebFrameTest.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb it from detach method instead. Created 5 years, 1 month 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/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)

Powered by Google App Engine
This is Rietveld 408576698