本文整理汇总了C++中JSHTMLObjectElement::globalObject方法的典型用法代码示例。如果您正苦于以下问题:C++ JSHTMLObjectElement::globalObject方法的具体用法?C++ JSHTMLObjectElement::globalObject怎么用?C++ JSHTMLObjectElement::globalObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSHTMLObjectElement
的用法示例。
在下文中一共展示了JSHTMLObjectElement::globalObject方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLObjectElementValidity
JSValue jsHTMLObjectElementValidity(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->validity()));
return result;
}
示例2: jsHTMLObjectElementConstructor
EncodedJSValue jsHTMLObjectElementConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
JSHTMLObjectElement* domObject = jsDynamicCast<JSHTMLObjectElement*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
if (!domObject)
return throwVMTypeError(exec);
return JSValue::encode(JSHTMLObjectElement::getConstructor(exec->vm(), domObject->globalObject()));
}
示例3: jsHTMLObjectElementValidity
EncodedJSValue jsHTMLObjectElementValidity(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSHTMLObjectElement* castedThis = jsDynamicCast<JSHTMLObjectElement*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
UNUSED_PARAM(exec);
HTMLObjectElement& impl = castedThis->impl();
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.validity()));
return JSValue::encode(result);
}
示例4: jsHTMLObjectElementPrototypeFunctionGetSVGDocument
EncodedJSValue JSC_HOST_CALL jsHTMLObjectElementPrototypeFunctionGetSVGDocument(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
if (!thisValue.inherits(&JSHTMLObjectElement::s_info))
return throwVMTypeError(exec);
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(thisValue));
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
ExceptionCode ec = 0;
if (!checkNodeSecurity(exec, imp->getSVGDocument(ec)))
return JSValue::encode(jsUndefined());
JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getSVGDocument(ec)));
setDOMException(exec, ec);
return JSValue::encode(result);
}
示例5: jsHTMLObjectElementContentDocument
EncodedJSValue jsHTMLObjectElementContentDocument(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSHTMLObjectElement* castedThis = jsDynamicCast<JSHTMLObjectElement*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
HTMLObjectElement& impl = castedThis->impl();
return JSValue::encode(shouldAllowAccessToNode(exec, impl.contentDocument()) ? toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.contentDocument())) : jsNull());
}
示例6: jsHTMLObjectElementConstructor
JSValue jsHTMLObjectElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* domObject = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
return JSHTMLObjectElement::getConstructor(exec, domObject->globalObject());
}
示例7: jsHTMLObjectElementContentDocument
JSValue jsHTMLObjectElementContentDocument(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
return checkNodeSecurity(exec, imp->contentDocument()) ? toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentDocument())) : jsUndefined();
}