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

Unified Diff: Source/core/frame/LocalFrame.cpp

Issue 335573004: Oilpan: Notify supplements of Page and LocalFrame destruction. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 1c0086f6c98e1f5acd93f0e1b2a1435e5c65e526..0ac1320f3da70bcc6da96145a361d8c5d3250881 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -122,6 +122,12 @@ LocalFrame::~LocalFrame()
setDOMWindow(nullptr);
}
+void LocalFrame::willBeDestroyed()
+{
+ loader().frameDetached();
+ WillBePersistentHeapSupplementable<LocalFrame>::willBeDestroyed();
+}
+
bool LocalFrame::inScope(TreeScope* scope) const
{
ASSERT(scope);

Powered by Google App Engine
This is Rietveld 408576698