diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/bindings/js/JSMessageChannelCustom.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/bindings/js/JSMessageChannelCustom.cpp')
-rw-r--r-- | Source/WebCore/bindings/js/JSMessageChannelCustom.cpp | 19 |
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); } |