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

Unified Diff: Source/core/page/PageAnimator.cpp

Issue 336553003: Change Page::m_mainFrame to be a Frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 6 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 | « Source/core/page/Page.cpp ('k') | Source/core/page/PageSerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PageAnimator.cpp
diff --git a/Source/core/page/PageAnimator.cpp b/Source/core/page/PageAnimator.cpp
index ce939eacee62a7848c92d4b7bbe8094daa466581..5f950cf1cef03e9368e8862437dd4b70277116eb 100644
--- a/Source/core/page/PageAnimator.cpp
+++ b/Source/core/page/PageAnimator.cpp
@@ -65,7 +65,10 @@ void PageAnimator::scheduleVisualUpdate()
void PageAnimator::updateLayoutAndStyleForPainting()
{
- RefPtr<FrameView> view = m_page->mainFrame()->view();
+ if (!m_page->mainFrame()->isLocalFrame())
+ return;
+
+ RefPtr<FrameView> view = m_page->deprecatedLocalMainFrame()->view();
TemporaryChange<bool> servicing(m_updatingLayoutAndStyleForPainting, true);
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/core/page/PageSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698