summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/js/JSMessageChannelCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/js/JSMessageChannelCustom.cpp')
-rw-r--r--Source/WebCore/bindings/js/JSMessageChannelCustom.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/WebCore/bindings/js/JSMessageChannelCustom.cpp b/Source/WebCore/bindings/js/JSMessageChannelCustom.cpp
index 3b2b26189..375dd4b5f 100644
--- a/Source/WebCore/bindings/js/JSMessageChannelCustom.cpp
+++ b/Source/WebCore/bindings/js/JSMessageChannelCustom.cpp
@@ -27,27 +27,18 @@
#if ENABLE(CHANNEL_MESSAGING)
+#include "DOMWrapperWorld.h"
#include "JSMessageChannel.h"
-
-#include "MessageChannel.h"
-#include <runtime/Error.h>
-
-using namespace JSC;
+#include <heap/SlotVisitorInlines.h>
namespace WebCore {
-void JSMessageChannel::visitChildren(JSCell* cell, SlotVisitor& visitor)
+void JSMessageChannel::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- JSMessageChannel* thisObject = jsCast<JSMessageChannel*>(cell);
- ASSERT_GC_OBJECT_INHERITS(thisObject, info());
- COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
- ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
- Base::visitChildren(thisObject, visitor);
-
- if (MessagePort* port = thisObject->m_impl->port1())
+ if (MessagePort* port = wrapped().port1())
visitor.addOpaqueRoot(port);
- if (MessagePort* port = thisObject->m_impl->port2())
+ if (MessagePort* port = wrapped().port2())
visitor.addOpaqueRoot(port);
}