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

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: Android/Mac fixes 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
Index: Source/core/page/PageAnimator.cpp
diff --git a/Source/core/page/PageAnimator.cpp b/Source/core/page/PageAnimator.cpp
index ce939eacee62a7848c92d4b7bbe8094daa466581..7186daaee1c765bdc990143a6a59984dfdbd75f1 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 = toLocalFrame(m_page->mainFrame())->view();
TemporaryChange<bool> servicing(m_updatingLayoutAndStyleForPainting, true);

Powered by Google App Engine
This is Rietveld 408576698