Index: Source/web/WebRemoteFrameImpl.cpp |
diff --git a/Source/web/WebRemoteFrameImpl.cpp b/Source/web/WebRemoteFrameImpl.cpp |
index 36df664b85912417c1c6f8ee378ed20f474a43b9..f3c7288a4e7d8fb94ea2851beff227b1c1875516 100644 |
--- a/Source/web/WebRemoteFrameImpl.cpp |
+++ b/Source/web/WebRemoteFrameImpl.cpp |
@@ -132,15 +132,15 @@ WebRemoteFrameImpl::~WebRemoteFrameImpl() |
{ |
} |
+#if ENABLE(OILPAN) |
void WebRemoteFrameImpl::trace(Visitor* visitor) |
{ |
-#if ENABLE(OILPAN) |
visitor->trace(m_frame); |
visitor->trace(m_ownersForChildren); |
- |
- WebFrame::traceChildren(visitor, this); |
-#endif |
+ visitor->registerWeakMembers<WebFrame, &WebFrame::clearWeakFrames>(this); |
+ WebFrame::traceFrames(visitor, this); |
} |
+#endif |
bool WebRemoteFrameImpl::isWebLocalFrame() const |
{ |