Index: Source/modules/mediasource/MediaSource.cpp |
diff --git a/Source/modules/mediasource/MediaSource.cpp b/Source/modules/mediasource/MediaSource.cpp |
index 65f966f47c065588e0fff33c30fa4c5a54ea70ff..6e283691077fffaa96d1219a57c214751962732f 100644 |
--- a/Source/modules/mediasource/MediaSource.cpp |
+++ b/Source/modules/mediasource/MediaSource.cpp |
@@ -263,27 +263,14 @@ ExecutionContext* MediaSource::executionContext() const |
return ActiveDOMObject::executionContext(); |
} |
-void MediaSource::clearWeakMembers(Visitor* visitor) |
-{ |
-#if ENABLE(OILPAN) |
- // Oilpan: If the MediaSource survived, but its attached media |
- // element did not, signal the element that it can safely |
- // notify its MediaSource during finalization by calling close(). |
- if (m_attachedElement && !Heap::isHeapObjectAlive(m_attachedElement)) { |
- m_attachedElement->setCloseMediaSourceWhenFinalizing(); |
- m_attachedElement.clear(); |
- } |
-#endif |
-} |
- |
DEFINE_TRACE(MediaSource) |
{ |
#if ENABLE(OILPAN) |
visitor->trace(m_asyncEventQueue); |
#endif |
+ visitor->trace(m_attachedElement); |
visitor->trace(m_sourceBuffers); |
visitor->trace(m_activeSourceBuffers); |
- visitor->template registerWeakMembers<MediaSource, &MediaSource::clearWeakMembers>(this); |
RefCountedGarbageCollectedEventTargetWithInlineData<MediaSource>::trace(visitor); |
ActiveDOMObject::trace(visitor); |
} |