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

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

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase past r181245 conflict Created 6 years, 3 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 8d97fe0a7015979101c4b5acd34da689df20c17c..c4c176a9c996b017aff1e255a264df0e0bb1c81b 100644
--- a/Source/core/page/PageAnimator.cpp
+++ b/Source/core/page/PageAnimator.cpp
@@ -6,6 +6,7 @@
#include "core/page/PageAnimator.h"
#include "core/animation/DocumentAnimations.h"
+#include "core/frame/FrameProtector.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/page/Chrome.h"
@@ -67,8 +68,8 @@ void PageAnimator::scheduleVisualUpdate()
void PageAnimator::updateLayoutAndStyleForPainting(LocalFrame* rootFrame)
{
- RefPtr<FrameView> view = rootFrame->view();
-
+ FrameView* view = rootFrame->view();
+ FrameViewProtector protect(view);
TemporaryChange<bool> servicing(m_updatingLayoutAndStyleForPainting, true);
// In order for our child HWNDs (NativeWindowWidgets) to update properly,

Powered by Google App Engine
This is Rietveld 408576698