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

Unified Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 594483002: Oilpan: extend tracing over WebFrame trees. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add not-reached assert 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/web/WebRemoteFrameImpl.cpp
diff --git a/Source/web/WebRemoteFrameImpl.cpp b/Source/web/WebRemoteFrameImpl.cpp
index ddd1552ed65134b927d39c4eb5d2d695ba96b064..eaa4bcf2ab4f4abf6a73a078805c831d8bc57cc0 100644
--- a/Source/web/WebRemoteFrameImpl.cpp
+++ b/Source/web/WebRemoteFrameImpl.cpp
@@ -131,15 +131,20 @@ WebRemoteFrameImpl::~WebRemoteFrameImpl()
{
}
+#if ENABLE(OILPAN)
void WebRemoteFrameImpl::trace(Visitor* visitor)
{
-#if ENABLE(OILPAN)
visitor->trace(m_frame);
visitor->trace(m_ownersForChildren);
+ visitor->registerWeakMembers<WebRemoteFrameImpl, &WebRemoteFrameImpl::clearWeakMembers>(this);
dcheng 2014/09/29 04:11:45 Why do we need to forward this through WebRemoteFr
sof 2014/09/29 06:41:25 You could do that, but you have to be careful not
+ WebFrame::traceFrames(visitor, this);
+}
- WebFrame::traceChildren(visitor, this);
-#endif
+void WebRemoteFrameImpl::clearWeakMembers(Visitor* visitor)
+{
+ WebFrame::clearWeakFrames(visitor, this);
}
+#endif
bool WebRemoteFrameImpl::isWebLocalFrame() const
{

Powered by Google App Engine
This is Rietveld 408576698