当前位置: 首页>>代码示例>>C++>>正文


C++ SlotVisitor::addOpaqueRoot方法代码示例

本文整理汇总了C++中SlotVisitor::addOpaqueRoot方法的典型用法代码示例。如果您正苦于以下问题:C++ SlotVisitor::addOpaqueRoot方法的具体用法?C++ SlotVisitor::addOpaqueRoot怎么用?C++ SlotVisitor::addOpaqueRoot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SlotVisitor的用法示例。


在下文中一共展示了SlotVisitor::addOpaqueRoot方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: visitChildren

void JSXMLHttpRequest::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSXMLHttpRequest* thisObject = jsCast<JSXMLHttpRequest*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, info());
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);

    if (XMLHttpRequestUpload* upload = thisObject->m_impl->optionalUpload())
        visitor.addOpaqueRoot(upload);

    if (Document* responseDocument = thisObject->m_impl->optionalResponseXML())
        visitor.addOpaqueRoot(responseDocument);

    if (ArrayBuffer* responseArrayBuffer = thisObject->m_impl->optionalResponseArrayBuffer())
        visitor.addOpaqueRoot(responseArrayBuffer);

    if (Blob* responseBlob = thisObject->m_impl->optionalResponseBlob())
        visitor.addOpaqueRoot(responseBlob);

    if (thisObject->m_response)
        visitor.append(&thisObject->m_response);

    thisObject->m_impl->visitJSEventListeners(visitor);
}
开发者ID:kodybrown,项目名称:webkit,代码行数:25,代码来源:JSXMLHttpRequestCustom.cpp

示例2: visitAdditionalChildren

void JSWorkerGlobalScope::visitAdditionalChildren(SlotVisitor& visitor)
{
    if (WorkerLocation* location = impl().optionalLocation())
        visitor.addOpaqueRoot(location);
    if (WorkerNavigator* navigator = impl().optionalNavigator())
        visitor.addOpaqueRoot(navigator);
}
开发者ID:,项目名称:,代码行数:7,代码来源:

示例3: visitAdditionalChildren

void JSDOMQuad::visitAdditionalChildren(SlotVisitor& visitor)
{
    visitor.addOpaqueRoot(const_cast<DOMPoint*>(&wrapped().p1()));
    visitor.addOpaqueRoot(const_cast<DOMPoint*>(&wrapped().p2()));
    visitor.addOpaqueRoot(const_cast<DOMPoint*>(&wrapped().p3()));
    visitor.addOpaqueRoot(const_cast<DOMPoint*>(&wrapped().p4()));
}
开发者ID:wolfviking0,项目名称:webcl-webkit,代码行数:7,代码来源:JSDOMQuadCustom.cpp

示例4: visitAdditionalChildren

void JSXMLHttpRequest::visitAdditionalChildren(SlotVisitor& visitor)
{
    if (XMLHttpRequestUpload* upload = wrapped().optionalUpload())
        visitor.addOpaqueRoot(upload);

    if (Document* responseDocument = wrapped().optionalResponseXML())
        visitor.addOpaqueRoot(responseDocument);
}
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:8,代码来源:JSXMLHttpRequestCustom.cpp

示例5: visitAdditionalChildren

void JSWorkerGlobalScope::visitAdditionalChildren(SlotVisitor& visitor)
{
    if (WorkerLocation* location = wrapped().optionalLocation())
        visitor.addOpaqueRoot(location);
    if (WorkerNavigator* navigator = wrapped().optionalNavigator())
        visitor.addOpaqueRoot(navigator);
    visitor.addOpaqueRoot(wrapped().scriptExecutionContext());
}
开发者ID:endlessm,项目名称:WebKit,代码行数:8,代码来源:JSWorkerGlobalScopeCustom.cpp

示例6: visitChildren

void JSMessageChannel::visitChildren(SlotVisitor& visitor)
{
    Base::visitChildren(visitor);

    if (MessagePort* port = m_impl->port1())
        visitor.addOpaqueRoot(port);

    if (MessagePort* port = m_impl->port2())
        visitor.addOpaqueRoot(port);
}
开发者ID:13W,项目名称:phantomjs,代码行数:10,代码来源:JSMessageChannelCustom.cpp

示例7: visitAdditionalChildren

void JSXMLHttpRequest::visitAdditionalChildren(SlotVisitor& visitor)
{
    if (XMLHttpRequestUpload* upload = impl().optionalUpload())
        visitor.addOpaqueRoot(upload);

    if (Document* responseDocument = impl().optionalResponseXML())
        visitor.addOpaqueRoot(responseDocument);

    if (ArrayBuffer* responseArrayBuffer = impl().optionalResponseArrayBuffer())
        visitor.addOpaqueRoot(responseArrayBuffer);

    if (Blob* responseBlob = impl().optionalResponseBlob())
        visitor.addOpaqueRoot(responseBlob);
}
开发者ID:nickooms,项目名称:webkit,代码行数:14,代码来源:JSXMLHttpRequestCustom.cpp

示例8: visitChildren

void JSWorkerContext::visitChildren(SlotVisitor& visitor)
{
    ASSERT_GC_OBJECT_INHERITS(this, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(visitor);

    if (WorkerLocation* location = impl()->optionalLocation())
        visitor.addOpaqueRoot(location);
    if (WorkerNavigator* navigator = impl()->optionalNavigator())
        visitor.addOpaqueRoot(navigator);

    impl()->visitJSEventListeners(visitor);
}
开发者ID:mulriple,项目名称:Webkit-Projects,代码行数:14,代码来源:JSWorkerContextCustom.cpp

示例9: visitAdditionalChildren

void JSWorkerGlobalScope::visitAdditionalChildren(SlotVisitor& visitor)
{
    if (auto* location = wrapped().optionalLocation())
        visitor.addOpaqueRoot(location);
    if (auto* navigator = wrapped().optionalNavigator())
        visitor.addOpaqueRoot(navigator);
    ScriptExecutionContext& context = wrapped();
    visitor.addOpaqueRoot(&context);
    
    // Normally JSEventTargetCustom.cpp's JSEventTarget::visitAdditionalChildren() would call this. But
    // even though WorkerGlobalScope is an EventTarget, JSWorkerGlobalScope does not subclass
    // JSEventTarget, so we need to do this here.
    wrapped().visitJSEventListeners(visitor);
}
开发者ID:wolfviking0,项目名称:webcl-webkit,代码行数:14,代码来源:JSWorkerGlobalScopeCustom.cpp

示例10: visitChildren

void JSMessageChannel::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSMessageChannel* thisObject = jsCast<JSMessageChannel*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);

    if (MessagePort* port = thisObject->m_impl->port1())
        visitor.addOpaqueRoot(port);

    if (MessagePort* port = thisObject->m_impl->port2())
        visitor.addOpaqueRoot(port);
}
开发者ID:3163504123,项目名称:phantomjs,代码行数:14,代码来源:JSMessageChannelCustom.cpp

示例11: visitChildren

void JSWorkerGlobalScope::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSWorkerGlobalScope* thisObject = jsCast<JSWorkerGlobalScope*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, info());
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);

    if (WorkerLocation* location = thisObject->impl()->optionalLocation())
        visitor.addOpaqueRoot(location);
    if (WorkerNavigator* navigator = thisObject->impl()->optionalNavigator())
        visitor.addOpaqueRoot(navigator);

    thisObject->impl()->visitJSEventListeners(visitor);
}
开发者ID:KnightSwarm,项目名称:WebKitTi,代码行数:15,代码来源:JSWorkerGlobalScopeCustom.cpp

示例12: visitChildren

void JSTreeWalker::visitChildren(SlotVisitor& visitor)
{
    Base::visitChildren(visitor);

    if (NodeFilter* filter = m_impl->filter())
        visitor.addOpaqueRoot(filter);
}
开发者ID:13W,项目名称:phantomjs,代码行数:7,代码来源:JSTreeWalkerCustom.cpp

示例13: visitChildren

void JSCSSRule::visitChildren(SlotVisitor& visitor)
{
    ASSERT_GC_OBJECT_INHERITS(this, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(visitor);
    visitor.addOpaqueRoot(root(impl()));
}
开发者ID:Treeeater,项目名称:WebPermission,代码行数:8,代码来源:JSCSSRuleCustom.cpp

示例14: visitChildren

void JSStyleSheet::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSStyleSheet* thisObject = jsCast<JSStyleSheet*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, info());
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);
    visitor.addOpaqueRoot(root(&thisObject->impl()));
}
开发者ID:CannedFish,项目名称:webkitgtk,代码行数:9,代码来源:JSStyleSheetCustom.cpp

示例15: visitChildren

void JSWebGLRenderingContext::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
    JSWebGLRenderingContext* thisObject = static_cast<JSWebGLRenderingContext*>(cell);
    ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
    COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
    ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
    Base::visitChildren(thisObject, visitor);
    visitor.addOpaqueRoot(thisObject->impl());
}
开发者ID:sysrqb,项目名称:chromium-src,代码行数:9,代码来源:JSWebGLRenderingContextCustom.cpp


注:本文中的SlotVisitor::addOpaqueRoot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。